I have a site with some static pages that lie in à folder called ../application/default/views/scripts/statiskt/student/(index.html) (seen from the webroot).
I can access these "static" pages via mydomain.se/statiskt/student/(index.html).
The problem is that i want to be able to access them via mydomain.se/student/(index.html).
I am us...
I just managed to create a project using Zend_Tool, but I am stuck on "second step" - enabling layout.
zf enable layout
leads to:
An Error Has Occurred
Action 'enable' is not a valid action.
This is my folder structure:
|--library
| |--Zend //framework classes in this folder
|
|--bin //command line tool f...
I have a controller test case that looks like the following:
class LoginControllerTest extends Zend_Test_PHPUnit_ControllerTestCase
{
public function testLoginFormIsShown()
{
$this->dispatch('/login');
$this->assertQuery('form#login');
}
}
However our site is written using HTML5 and contains elements like <...
So here is a method I have in my controller:
private $_tables = array();
private function _getTable($table)
{
if (!isset($this->_tables[$table])) {
include APPLICATION_PATH . '/modules/'
. $this->_request->getModuleName() . '/models/' . $table . '.php';
$this->_tables[$table] = new $table();
}
return...
Hello, i am using Join query in zend..
like
$select = $table->select()
->from(array('e' => 'EducationHistory'),
array('status_DataDictionary_id'))
->join(array('r' => 'ReportOrder'),
'e.id = r.EducationHistory_id',
...
When Ive created a new controller, ie in this case Authenticate, Ive also created the folder and file application/views/scripts/authentication/index.phtml
Not a problem when hitting the url http://dev.local/authentication/ but when calling any action ie http://dev.local/authentication/login, I get the error below.
Message: script 'aut...
Hi again. I am using the next instructions to get some registers from my Database.
Create the needed models (from the params module):
$obj_paramtype_model = new Params_Model_DbTable_Paramtype();
$obj_param_model = new Params_Model_DbTable_Param();
Getting the available locales from the database
// This returns a Zend_Db_Ta...
Ok here is a method I use for initializing models in my controller actions:
protected $_tables = array();
protected function _getTable($table)
{
if (false === array_key_exists($table, $this->_tables)) {
include APPLICATION_PATH . '/modules/'
. $this->_request->getModuleName() . '/models/' . $table . '.php';
...
What does the ? character in this SQL query mean?
$res = $dbConn->fetchPairs('SELECT name FROM tree where parent = ?',$key);
...
I am trying to get custom error message to work for MultiCheckbox, doesn't work. It is the same way I did for Zend_Form_Element_Text that works.
But for MultiCheckbox, nothing. I tried different combinations but the message "Invalid type given, value should be float, string, or integer" doesn't go away.
Here is the code below. Any help...
Hello,
how do I make available some data for a layout/layout.phtml script without having to create a view script from a controller?
I've tried the following in indexAction function, but it does not work. When I do not create the view script I get an error. I could created empty one, but I don't like this solution much. Any better ideas...
Hi,
is any method to validate Youtube video link with Zend-framework ?
If user inputs not valid link, for example http://www.youtube.com/watch?00zzv=nel how can I check it before inserting into site ?
...
Hello,
I currently use zend_navigation via an XML file.
However I need to overwrite the previous breadcrumb to be its dynamic parent, in the controller.
Is this possible? It seems to me that zend_navigation is fairly static and the zend documentation keeps timing out.
Thanks
...
I have the following RewriteRule on my Apache with ZendFramework in the back:
RewriteRule ^/account([0-9]+) /account?i=$1 [L]
Problem that I'm having is that I have an AccountController.php for ZendFramework, so URL from browser going to ...://myserver/account works just fine. However, when I have this rewriterule in httpd.conf, and p...
I can add an element to a form like this:
$form->addElement($element);
However, that will put the element at the end of the form, I would like to prepend an element (put it at the beginning of the form).
Why? The form has dynamically generated fields (number of text fields and their labels are generated based on parameters from reque...
Hi,
I am struggling with a bug/problem that I am having trouble with when using Zend_Search_Lucene. Now I have 2 indexes that I search one that is parsed html pages/text that I use the Zend_Search_Lucene_Document_Html::loadHTML() function to read the contents and add to one of the lucene indexes.
The other index I manually create a lu...
i have just finished my first site built with zend framework and all works great on my local machine.
then i uploaded it to the server (godaddy) and all works except any connection my models do with the database. i have made a connetion to the database with regular PDO with the credentials in my application.ini and it worked, and i can ...
hello
i created a form that it decorates as table form
its my code for decorates
$this->setElementDecorators(array(
'ViewHelper',
'Errors'
array(array('data'=>'HtmlTag'),
array('tag'=>'td','class'=>'element')),
array('Label',array('tag'=>'td')),
array(array('row'...
I would like to run a Zend Framework action to generate some files, from command line. Is this possible and how much change would I need to make to my existing Web project that is using ZF?
Thanks!
...
how to call mysql stored procedure on zend framework?
any body may give an example?
thanks
...