Search found 18 matches

by amar9111
Wed Jun 26, 2013 11:19 pm
Forum: Zend Framework
Topic: issues with online order form using zend
Replies: 2
Views: 904

Re: issues with online order form using zend

Hi can u show us how you are handling the posted data.
by amar9111
Fri Jun 14, 2013 4:13 pm
Forum: Zend Framework
Topic: using zend form decorators
Replies: 11
Views: 7743

Re: using zend form decorators

create you form like this class Form_Whyus extends Zend_Form { public function init() { $this->addElement('text', 'your_field', array ( 'Label' => 'Labels', 'Required' => false, 'Size' => 40, 'Tabindex' => 1, 'Filters' => array ('StringTrim', 'StripTags', 'StringToLower'), 'Validators' => array ( ne...
by amar9111
Fri Jun 14, 2013 12:06 am
Forum: Zend Framework
Topic: using zend form decorators
Replies: 11
Views: 7743

Re: using zend form decorators

The best thing is if you use the view scripts
by amar9111
Thu Jun 13, 2013 11:59 pm
Forum: Zend Framework
Topic: headLink and headScript are causing layout error
Replies: 1
Views: 960

Re: headLink and headScript are causing layout error

$view->headLink()->setStylesheet('http://zend-me.com/application/views/css/'. $styleLang .'/style.css'); $view->headScript()->appendFile('http://zend-nymgo.com/application/scripts/common.js', 'text/javascript'); you should add these lines in your view script and try $view->headLink()->setStylesheet(...
by amar9111
Thu Jun 13, 2013 11:50 pm
Forum: PHP
Topic: php
Replies: 2
Views: 2799

Re: php

<?php echo $this->headLink()->appendStylesheet('/css/style.css') ?>
by amar9111
Thu Jun 13, 2013 11:43 pm
Forum: PHP
Topic: Meta Tags
Replies: 51
Views: 49925

Re: Meta Tags

Hi
you need to add the meta tags in views for example to add the meta tags for index page .

add the metas in index.phtml file in views.

you must have enabled layout

by
zf enable layout
by amar9111
Thu Jun 13, 2013 11:37 pm
Forum: PHP
Topic: Best PHP programming approach?
Replies: 4
Views: 5991

Re: Best PHP programming approach?

Hi Jack my first advise to you is before going for any framework you need to have solid knowledge of PHP and especially PHP OOP Model,Once you have got good hand on that then you should play with any framework for few months before you implement it. The best suggestion for you could be first analyse...
by amar9111
Thu Jun 13, 2013 11:27 pm
Forum: PHP
Topic: PHP Function required similar to die() function
Replies: 2
Views: 2901

Re: PHP Function required similar to die() function

I think u looking something like
if(ture){
echo 'yes';
}else{
do nothing
}
or you can use
Try{


}catch exception
by amar9111
Thu Jun 13, 2013 11:22 pm
Forum: PHP
Topic: Difference between mysql_fetch_object and mysql_fetch_array
Replies: 1
Views: 2801

Re: Difference between mysql_fetch_object and mysql_fetch_ar

results of mysql_fetch_object can be displayed as below
echo $row->field;
while mysql_fetch_array as
echo $row['field'];
by amar9111
Thu May 30, 2013 11:28 pm
Forum: PHP Questions / Hints
Topic: array_Values
Replies: 1
Views: 3063

Re: array_Values

if you simply want to convert array_values as objects then use like below
$myobjects = (object)$array_values;