I'm trying to retrieve hierarchical data from a table but am failing to do so. The table has (for now) the following columns: ifc_key, ifc_name, ifc_parent. ifc_key is not used. (primary key, but not used for this function.
The purpose is to get an array. Each element is a "parent" interface. (so all these root elements are ifc_name v...
hi people, my file form element is very simple:
$this->archivo = new Zend_Form_Element_File('archivo');
$this->archivo->setLabel('Archivo:')
->setRequired(true)
->setDestination(UPLOAD_PATH)
->addValidator('Count', false, 1)
->addValidator('Size', false, MAX_FILE_SIZE)
->addValidator('Extension', ...
When I run debug for my public/index.php I got an application error as output.
<?php
class Model_DbTable_FeedEntries extends Zf_Db_Table
{
public function fetchNewEntries($feed_id)
{
$Feeds = new Model_DbTable_Feeds();
$Feed = $Feeds->getById($feed_id);
// ERROR IS HERE! The column doesn't exists!
/...
hii i am new to zend . i have written a form using zend . like under forms i have created the forms and a simple one like
$specific_consultant = new Zend_Form_Element_Radio('Specific_consultant');
$specific_consultant->setLabel('Specific Consultant')
->addMultiOptions(array(
'Yes' => 'Yes',
...
whats the best way to get Statistics Web pages by the users visited ?
anybody may explain how do we implement to get statistics web pages by the each users visited
and the most page is visited?
...
I like how this works in Zend Framework. I can know which environment I'm currently using by checking APPLICATION_ENV constant in my controller.
<VirtualHost *:80>
#ServerName
#DocumentRoot
SetEnv APPLICATION_ENV "development"
# Directory
</VirtualHost>
But unfortunately I can't use ZF in my current project. Ho...
This is an subjective question, I need your feels and thoughts about coding standards, and formatting practices.
PHP Zend coding standard requires to write multiline function calls like this:
$returnedValue = $object->longMethodName(
$argument1,
$otherArgument,
42
);
I think the following approach is more readable:
$retu...
I'm developing a site which has urls like this:
site.com/james
site.com/james/photos
Schema for this urls are this: site.com/USERNAME/APPLICATION
Both username and application names are checking from db yb program logic. I set the route for this but Zend is routing all requests to this route.
But there is same controllers and admin ...
Here's my RegisterController:
public function saveforminformationAction(){
$request = $this->getRequest();
if($request->isPost()){
//I NEED HELP WITH THE getFormValues() METHOD.
$formResults = $this->getFormValues();
$db = $this->_getParam('db');
$data = array(
...
Hi all,
Update I was able to get this to work by creating a custom Label decorator, which extended Zend/Form/Decorator/Label.php. I added a setTagClass() method to it and overrode the render method to create the enclosing tag with the desired class. There might be a more elegant way to do it but this seems to work.
I'm looking for in...
I would like to know what are the best ways/practices to browse a SVN (like http://core.svn.wordpress.org/) with Zend Framework. As a student learning Zend Framework, I am not very used with this framework so I would like to start on the right direction. It has to do simple tasks like list all files, retrieve a revision of a file, get th...
All,
I am working on a Zend Framework based web application. We keep encountering out of memory errors on our dev server:
Allowed memory size of XXXX bytes exhausted (tried YYYY...
We keep increasing memory_limit in php.ini, but it is now up over 1000 megs. What is a normal memory_limit value? What are the usual suspects in php/Ze...
Hi
Ok dealing with Partial Loops I want to do several things
Perhaps pass in extra variables - seen it done like this
echo $this->partialLoop('Loop.phtml', array('data' => $data, 'var1' => foo));
But this does not seem to work - I can not extra the data using $this->var $this->data->var or $data->var not sure how to access the data ...
I have a page which contains several divs (each with a unique ID and the same class, 'parent'). Underneath each "parent" div, is a div with class "child" and unique ID name -child. This DIV is upon page load empty.
Whenever you click on a parent DIV, the following code is executed.
$$('div.parent').each(function(s){
$(s).observe('c...
Hi
I try to write codes about sending email using Zend Framework. Here is the code,
$mail = new Zend_Mail('utf-8');
$mailConfig = array(
'auth'=> 'login',
'username' => '[email protected]',
'password' => 'samplepassword',
'ssl' => 'tls',
'port' => '587';
$tr = new Zend_Mail_Transport_Smtp('smtp.gmail.com', $mailConfig);
Ze...
I am getting the following exception when i try to use the fetchall method of the Zend_Db_Table_Abstract class...
An error occurred4545
EXCEPTION_OTHER
Exception information:
Message: The PDO extension is required for this adapter but the extension is not loaded
Stack trace:
#0 D:\www\TestProject\library\Zend\Db\Adapter\Pdo\Mysql.php(...
How to make jQuery slider with fixed maximum ... exact like this:
http://jqueryui.com/demos/slider/#rangemin
I manage to do it half way:
$slider = new ZendX_JQuery_Form_Element_Slider('amount');
$slider->setLabel('Set Amount: ');
$slider->setJQueryParams(array('min' => 0, 'max' => 60, 'value' => 15));
I don't know how to display the...
I'm creating a library of display objects for our application. They render the html of a lot of the common objects (users, conversations, messages, etc) in various views. By views I mean the object can spit back different 'zoom levels' of itself with different markup.
Some display objects contain other display objects to render eg. a us...
I add this class to library/My/Validate/PasswordConfirmation.php
<?php
require_once 'Zend/Validate/Abstract.php';
class My_Validate_PasswordConfirmation extends Zend_Validate_Abstract
{
const NOT_MATCH = 'notMatch';
protected $_messageTemplates = array(
self::NOT_MATCH => 'Password confirmation does not match'
);
...
As you know, Zend Framework (v1.10) uses routing based on slash separated params, ex.
[server]/controllerName/actionName/param1/value1/param2/value2/
Queston is: How to force Zend Framework, to retrive action and controller name using standard PHP query string, in this case:
[server]?controller=controllerName&action=actionName¶m...