Hello,
I m using zend.
I want to define the below code outside the controller class & access in different Actions.
$user = new Zend_Session_Namespace('user');
$logInArray = array();
$logInArray['userId'] = $user->userid;
$logInArray['orgId'] = $user->authOrgId;
class VerifierController extends SystemadminController
{
public function indexAction()
{
// action body
print_r($logInArray);
}
}
How it is possible.
Basically in order to have a profile Block u need - let's say profile controller, PhotoController, may be dashboard to show at the same page at the same time and to reach this in the zend framework is sometimes done through helper action() or forward, are ther better options?
We own a big site and we submitted it to digg.
Overnight, we had too many users added, up to 9000+.
We use Zend framework with one MySQL database. What actions should we take to make our server scale well?
Hi experts,
we have an old large application that was not built on any framework. However now we want to transfer it to a php framework. Its a new area for us so we are not sure what it takes to transfer the older application to a framework like Zend?
Any help will be appreciated.
thanks
My instance of Drupal 7 is unable to install new modules via FTP link. The error message that comes up is as follows :
Warning: fileowner() [function.fileowner]: stat failed for temporary://upd92FE.tmp in update_manager_local_transfers_allowed() (line 924 of C:\inetpub\wwwroot\drupal\modules\update\update.manager.inc).
My setup is as follows :
Windows 7 Home Premium 64 Bit
IIS 7.5 + Zend Community Server
Hi everybody...
First of all, Pardon this complete n00b question...
While going through the zend tutorial here i came across the following statement...
Note that the php_flag settings in
.htaccess only work if you are using
mod_php.
Can someone explain what that means...???
Thanks and Regards....
Hi,
Can i open a new window after execution of some code(ie at some point of time before completion i need to open a new window in zend.Can i do this?
Also how can i check the size of a remote file.
Thanks in advance.........
Hi,
I am sending tweets to Twitter via Zend_Service_Twitter.
The tweets appear with a note "via API". I want to set the API Source with a different name, is there already a functionality within the Zend Framework to change it?
Or do I need to subclass to get this functionality?
Thanks!
Hi,
i am using Zend Framework, i have an layout.phtml wich renders navigation.phtml. How can i display a search form in this script ?
Where is the right place to set the form ? In normal view scripts i will use the controllerAction to set the form , and simply echo it..
Do i need an FrontController Plugin, wich sets the form ?
Hi,
I have windows xp in my work and i programming on zend framework.
I need to install ubuntu for execute doctrine orm commands from linux console, I faile to do it on windows.
I thinking about 2 option of UBUNTU installation:
1.install ubuntu 10.04 on Virtual Box (Sun Virtual Machine).
2.create new primary partition and install ubuntu 10.04 directly.
Which options do you suggest to do?
Thanks
Hi,
I just want somthing like this:
select SUM(*) from `mytable` group by `year`
any suggestion?
(I am using Zend Framework; if you have a suggestion using ZF rather than pure query would be great!)
Update: I have a mass of columns in table and i do not want to write their name down one by one.
No Idea??
Hi,
I just want somthing like this:
select SUM(*) from `mytable` group by `year`
any suggestion?
(I am using Zend Framework; if you have a suggestion using ZF rather than pure query would be great!)
for a current webapp i need a "outlook-like" calendar... Here are some requirements for the calendar:
week-view for the appointments
different appointment types
direct display of the length and time of the date (like in googleCalendar)
multiple appointments for the same time
only using javascript, php and any DB
We need the calendar for the Zend Framework, so if the Calendar doesn't already support the ZF, the source needs to be editable!
do you know any calendar which fits my needs? or do you have any tipps for developing one by myself?
I'm using Doctrine 2 with my Zend Framework application and a typical query result could yield a million (or more) search results.
I want to use Zend_Paginator in line with this result set. However, I don't want to return all the results as an array and use the Array adapter as this would be inefficient, instead I would like to supply the paginator the total amount of rows then and array of results based on limit/offset amounts.
Is this doable using the Array adapter or would I need to create my own pagination adapter?
In a prompt we can run:
php filename.php args
But how to set the args in zend studio?
I've searched for this some time,and don't seems to find the example.
I can only debug without args by simply pressing F5
I have been developing websites in n-tier structure and so far my requirements are fulfilled. But as powerful frameworks like Zend Framework, symphony are getting popular, I wonder how to know if it is time to shift to a framework?
I am in a kind of dilemma? Can anyone suggest me the right option !
hi
i have a simple question
where is my code wrong ?
in index controller and index action
i put
$this->view->username="user1";
and when i try in my layout i use
echo $this->username;
i got fllowing error or null value
Notice: Trying to get property of non-object in D:\Zend\Apache2\htdocs\test\application\layouts\layout.phtml on line 115
thanks
I have been developing websites in n-tier structure and so far my requirements are fulfilled. But as powerful frameworks like Zend Framework, symphony are getting popular, I wonder how to know if it is time to shift to a framework?
I am in a kind of dilemma? Can anyone suggest me the right option !
If i submit my ajax form from jQuery, and do
print_r($_FILES);
i get a list of files uploaded,
but if i do something like this
$add_form->sound_file->isUploaded();
or
$params = $this->_getAllParams();
print_r($params);
i don't get my file in zend parametars, and i don't get it uploaded!?
Mayb the problem is with he context beng ajax?!
There is a out of box resources in Zend Framework,
when configures in the ini file
resource.db.user ="xxxx"...
the bootstrap sets up db adapter, just curious does bootstrap sets db adapter into registry too, or not?
Hi everyone,
I'm using greybox and trying the following thing: I want to make a form inside the pop-up so when the users submit's it, the request goes to the main window and the pop-up closes.
I know the way to close the window is by using onclick="parent.parent.GB_hide()", but I really haven't been able to find a way to make the pop-up close and the data sent to the corresponding controller when the form is submitted.
I'm using Zend FW.
Thanks in advance,
I really appreciate what this community does.
My Zend application is going to get an command line php script that should email reports. There generation depends on Zend_View, Zend_Layout and is currently already working fine in the web interface.
How can I reuse this whole MVC functionality in the command line?
Should I add a new controller CommandLineController and call this somehow from the commandline?
How can I kick of such a Controller manually, without having a HTTP request?
Hi All
I am very to new to zend frame work , I am trying to set up a project (Done by other programmer) in my local server, but in this project the all links to another are not working?
Plss help me!!!!!!!!1
Hi sorry if this is a naive question, but what did people do before mvc frameworks became so popular? All you hear of nowadays, and im talking php here, are mvc, Zend etc but what did developers do beforehand?
Are there some developers who use the mvc pattern but without a framework - if so how do they do this and is it really complicated to set up?