So, i'm having a lot of trouble with this little piece of code. An example timestamp is this: '1278509422000'.. the problem is that it comes in as a string and I have to convert it somehow. I know about the problem with milliseconds and have tried dividing by a 1000 and much more (intval/floatval) but it just will not become a correct da...
Hi,
I beginner in zend framework and its a bit hard for me to understand zend_translate how its works.
My Main Question:
How can be done with zend framework translation that will translate each expression according his html id and how non programmer translator can see word location in web browser for translate each expression according...
Hi,
Which solution supplied zend_translate for translate word with few meanings?
Example: http://m-carstairs.com/englishlessons/id12.html
Thanks,
Yosef
...
Is it possible to create a submenu in Zend Navigation?
At this time i've got this in my application.ini:
resources.navigation.pages.indexHome.label = "Home"
resources.navigation.pages.indexHome.controller = "index"
resources.navigation.pages.indexHome.action = "index"
resources.navigation.pages.indexLogin.label = "Login"
resources.navi...
I'm building a site in Zend that requires the ability to upload a list of email addresses via a file upload. This will end up populating a distribution list table.
What I'd like to do is have the user complete the form, including the attached file, then upon submit, I will parse the file and submit the form for each line of the file.
...
I'm trying to write a unit test for a controller using Zend and PHPUnit
In the code I get data from php://input
$req = new Zend_Controller_Request_Http();
$data = $req->getRawBody();
My code works fine when I test the real application, but unless I can supply data as a raw http post, $data will always be blank. The getRawBody() meth...
The company I work for paid alot of money to put me on the Zend PHP programming course, i completed all the online classes and tutorials all I need to do know is book the test and pass.
Any advice from anyone? areas i should concentrate on? materials ? blogs?
...
I have to protect my code? which is the best method for protecting our codes? any body can help me?
...
Besides the obvious 'admin' and 'blog' use cases for a module structure in Zend Framework are there any reasons or guidelines to use Modules? I feel drawn to use modules, but I'm not sure how I would split my web app up into modules.
Can you suggestion some instances where using modules would be beneficial?
...
I have been using CodeIgniter for about a year now, but I feel that I have spent too much time building things that should be native. My own version of it is pretty cool and has almost everything I have ever used to build a web, in a way that it is reusable, but still lacks power and every time I learn something new (like TDD, or ORM), I...
Hi,
Why Zend_Form produce <dl> <dt id="label-id"> <dd id="elem-id"> </dl> ?
(I understand that its produce by default decorators, but why and for what they used? )
Thanks
...
Hi,
Zend_Form:: When should be form created in view and not in controller?
option 1 - form created in controller and passed to view (usually used)
controller:
$form=new MyForm();
$this->view->form=$form;
view:
echo $this->form;
option 2 - form created in view directly (looks better to me because form its subpart of view)
view:...
I have a huge and complex form, and I have build it using Zend_Form.
There are multiple places in the form where the user can add elements on click.
Currently, if the user submits the form, and the validation fails - the elements added by the user are not retained - as they were not a part of the form.
Is there a natural way to add them ...
Hi,
I beginer in zend framework.
ob_start("ob_gzhandler") - why the function not use directly in zend framework project?
(does ob_start("ob_gzhandler") used auto in zend framework? )
Thanks
...
I'm developing an app using Zend Framwork using Git for version control.
What is the best approach for updating the schema and the database when one of us makes an update to the db structure?
currently, we have to blow out the tables and recreate them manually to reflect the new updates.
...
within the two actions below, i changed the session variable callback and selectLabel
public function actn1Action()
{
$this->_helper->layout->disableLayout();
$this->_helper->viewRenderer->setNoRender();
$ns = new Zend_Session_Namespace('temp');
$ns->callback = $this->getRequest()->getBaseUrl()."/callback1";
$ns->selectLabel = 'Label1'...
Hi guys,
In the process of building a modular cms I have come to a point where I am standardising certain parts of the system into the "core" and leaving all extras as modules.
I never had any issues when I was accessing content pages via example.com/content/about-us however it looks a little messy to have the content at a url removed ...
I added a new column "features" to the site table and regenerated the models using Doctrine
This code is causing an error
$siteTable = Doctrine_Core::getTable("Site");
$site = $siteTable->findOneByName("site"); // this line is throwing an exception
Exception : Unknown column "s.features" in field list.....
I checked the database ...
Hi,
I have to use custom functions / objects in my web application based on Zend Framework 1.10.
Where is the best place to put them ?
Thanks in advance
...
$select = $this->_db->select()->from($this->_name,array("id","fullname","username","email"))->where("fullname LIKE '$query%'");
I am using this SQL statement currently to power my Ajax auto suggest, if i type in "a" it gets me results starting with a.
I want to know if this can be accomplished my using Zend Lucene indices.
...