Hello there,
I'm having some difficulties with the combination of Zend_Navigation, Zend_Translate and the routing needed.
My site navigation is done through Zend_Navigation based on and XML file.
I've now added translation to the site based on Zend_Translate and added to following change of routing to the bootstrap:
protected function...
The zend framework is in BSD
if i make a leet product on zend can i sell it to ppl ?
...
Hi,
Iam coding my first Zend Framework application. Iam looking for some good applications for beginners to learn the framework and its intricacies.
I went through the quick start guestbook application from Zend's website in first 2 days and it was a nice tutorial and I got to learn many things from it.
However I want to go through ...
I'm fairly certain my professor will ask me why I chose to use MVC for my web application.
Truth be told, I'm new to MVC. I read about it, I'm building a blog application using it, I think it's very logical to approach a problem this way.
But why? O_O I draw a blank. How is better suited than say, building an N-tier application?
...
I have a problem here. My Zend_Forms do not render in view script.
Via FirePHP i have spotted a lot of "Need PHP 5.3 to get value"
Could someone confirm?
What should i do if i have PHP 5.2.11?
Thanks!
...
[2] fopen(/var/www/vhosts/tuthost/httpdocs/application/controllers/helpers/ViewRenderer.php) failed to open stream: No such file or directory
in file: /var/www/vhosts/tuthost/httpdocs/library/Zend/Loader.php
on line: 165
[2] fopen(/var/www/vhosts/tuthost/httpdocs/application/views/helpers/HeadTitle.php) failed to open stream:...
When running a Zend application locally I get Fatal error: Exception thrown without a stack frame in Unknown on line 0, i traced that error to a line $startedCleanly = session_start();
I can't get through it, when I restart the server and reload the page I do not get the error, but on every other reload I get it, I looked into a php/tmp...
Hello,
I don't think that using .ini or .xml file is a good idea with high traffic projects because every page load causes parsing config.ini or .xml file.
Is there any way to replace using .ini/.xml with regular php array as config?
Now php ini looks like that...
[production]
phpSettings.display_startup_errors = 0
phpSettings.display...
Read the comments in the code for a description:
<?php
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
public function __construct($configSection){
$rootDir = dirname(dirname(__FILE__));
define('ROOT_DIR',$rootDir);
set_include_path(get_include_path()
. PATH_SEPARATOR . ROOT_DIR . '/libra...
I'm kind of lost.
I made a sort of 'master page' that I want a page to use. Where do I declare it?
MainLayout.phtml
<html>
<head>
</head>
<body>
<?php echo $this->layout()->content; ?>
<div>
<ul>
<li><a href="#">Navigation</a></li>
<li><a href="#">Naviga...
Ive got a view helper in library/my/view/helper/gravatar and so in any view I can call $this->gravatar($email).
But how can I access this function in the models (or controllers)?
Sorry if its already been asked but Im new and the documentation is bloody awful in parts.
Thanks everyone
...
Thank you for the answers. :)
I'm mainly looking to host my website with A Small Orange, but they don't say if they support Zend anywhere. :S
...
Following the sample code on http://framework.zend.com/manual/en/zend.db.profiler.html I have set up db profiling of my Zend Framework app.
application.ini:
db.profiler.enabled = true
View Helper:
$totalTime = $profiler->getTotalElapsedSecs();
$queryCount = $profiler->getTotalNumQueries();
$longestTime = 0;
$longestQuery = nul...
Does the Zend Framework (or applications built using Zend_Application) provide any mechanism for persisting ACL lists, or is that detail left to the individual system/application developer?
Most of the examples I see online involve setting up your ACL rules in code. I'm curious if there's any standard/preferred way to save these rules ...
$gdataCal= new Zend_gdata_calendar($client);
//on retrouve l'event a partir de eventURL stocké lors de la création
$event = $gdataCal->getCalendarEventEntry($id_event);
$who= $gdataCal->newWho();// $who objet de type Zend_Gdata_Extension_Who
//les nouvelles valeurs du who
$email ="cn21lqqt8jeb9qgulpra6bj948%40group.calendar.google.com";...
I have three tables like this:
Person table:
person_id | name | dob
--------------------------------
1 | Naveed | 1988
2 | Ali | 1985
3 | Khan | 1987
4 | Rizwan | 1984
Address table:
address_id | street | city | state | country
-----------------------------...
Hi, I'm trying to implement a REST API to my website.
My problem is that the default Zend routing gets in the way. I've first tried using Zend_Rest_Route but I haven't been able to understand how I was supposed to use it correctly for "deep" routes, aka website/api/resource1/filter/resource2/id.
Using the default Zend routing, I'd need...
I'm developing a web app with zend framework and i'd like to discuss what is the best way to intergrate all the JS and FBML in a ZF project, anyone have some experience.
For example, which may be a good solution for have the Facebook istante in every controllers, a front controller plugin?
...
<select name="day" id="day">
<option value="0" label="Day:">Day:</option>
<option value="1" label="1">1</option>
</select>
<select name="month" id="month">
<option value="0" label="Month:">Month:</option>
<option value="1" label="January">January</option>
</select>
<select name="year" id="year">
<opt...
Hi, I'm trying to centralise my redirects (based on authentication and various other states) into a front controller plugin. So far I've tried:
$this->setRequest(new Zend_Controller_Request_Http('my_url'));
at various points in the plugin (i.e. from routeStartup to dispatchLoopShutdown) and also:
$this->setResponse(new Zend_C...