ork-community.634137.n4.nabble.com/Zend-form-is-not-showing-up-tp4658708p4658736.html
Sent from the Zend Framework mailing list archive at Nabble.com.
--
Alayn Gortazar
--
List: fw-general@lists.zend.com
Info: http://framework.zend.com/archives
Unsubscribe: fw-general-unsubscr...@lists.zend.com
gt; // index.phtml
>
> $form = $this->form;
> $form->setAttribute('action', $this->url('home'));
> $form->prepare();
> ?>
>
> form()->openTag($form); ?>
> formRow($form->get('text')); ?>
> formSubmit($fo
s Event {
/**
* @var Zend_Date
*/
protected $_endTime;
public function getLocalEndTime()
{
return $this->_endTime->toString('es_ES', 'Europe/Madrid');
}
}
--
Alayn Gortazar
--
List: fw-general@lists.zend.com
Info: http://framework.zend.com/archives
Unsubscribe: fw-general-unsubscr...@lists.zend.com
> View this message in context:
> http://zend-framework-community.634137.n4.nabble.com/Best-practices-environment-setup-tp662770p4388719.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
> --
> List: fw-general@lists.zend.com
> Info: http://fram
e
> >> wrong thing.
> >>
> >> Sorry for the long post...
> >>
> >> Regards,
> >>
> >> Adnan
> >>
> >>
> >> --
> >> View this message in context:
> >> http://zend-framework-community.634137.n4.nabble.com/Loading-non-default-Resources-in-the-Autoloader-tp4299613p4299613.html
> >> Sent from the Zend Framework mailing list archive at Nabble.com.
> >>
> >> --
> >> List: fw-general@lists.zend.com
> >> Info: http://framework.zend.com/archives
> >> Unsubscribe: fw-general-unsubscr...@lists.zend.com
> >>
> >>
> >>
> >
> >
> > --
> > Thanks,
> >
> > Clint Lenard
> >
> > www.ClintLenard.com
> > www.Affiliit.com
> >
> > *"Great minds discuss ideas*, *average minds discuss events*, *small
> > minds discuss people*." - Eleanor Roosevelt
> >
> > *"**I've learned that mistakes can often be as good a teacher as
> > success.*"
> > - Jack Welch
> >
> >
--
Alayn Gortazar
--
List: fw-general@lists.zend.com
Info: http://framework.zend.com/archives
Unsubscribe: fw-general-unsubscr...@lists.zend.com
7/06/2011 15:10, Alayn Gortazar ha scritto:
> > As far as I know Zend uses preg_replace to emulate trim's behaviour
> >
> > - Mensaje original -
> >> Actually, after a bit of thinking, I started to wonder if trim()
> >> was
> >> multibyt
gt; If character 'à' is at the end of the string the filter returns
> >>> the bad
> >>> character � and when save it in the DB it throws the following
> >>> exception:
> >>>
> >>> SQLSTATE[HY000]: General error: 1366 Incorrect strin
tion' => 'index'
> ),
> $this->_front->getDispatcher(),
> $this->_front->getRequest()
> );
>
> $module->isAbstract(true);
>
> $default = new Zend_Controller_Router_Route_Chain();
> $default->chain($language);
> $default->chain(
$paginator->setItemCountPerPage(10);
return $paginator;
}
//controller:
public function IndexAction()
{
$paginator =
$this->user->getAllUsersPaginator($this->_getParam('page'));
//Do whatever you want with it here...
}
Regards,
--
Alayn Gortazar
4-2010 a las 08:42 -0300, Luiz Damim escribió:
> Are you caching the table metadata?
>
> I'm using caching and this happens to me when I add/remove columns
> from the table.
>
> Try cleaning the cache, this solves the problem.
>
> On Mon, Apr 12, 2010 at 8:09 AM,
is caused by the __construct method, if I
> remove the line '$this->_acc = $this->getCurrentAccount();' the error goes
> away. Am I doing anything wrong here? Thanks so much!
>
>
--
Alayn Gortazar
Irontec, Internet y Sistemas sobre GNU/LinuX - http://www.irontec.com
+34 94.404.81.82
le to reconnect:
protected $_cols = array(
...
'birth_date' => 'UNIX_TIMESTAMP(birth_date)',
...
);
Is there anyway to bypass this check or I should declare that col in any
another way??
--
Alayn Gortazar
Irontec, Internet y Sistemas sobre GNU/LinuX - http://www.irontec.com
+34 94.404.81.82
nd_Date('2010-03-01', '-mm-dd');
> $dateDiff = $day2->getDate()->get(Zend_Date::TIMESTAMP) -
> $day1->getDate()->get(Zend_Date::TIMESTAMP);
> $days = floor((($dateDiff / 60) / 60) / 24);
> return $days;
>
> it will return -27 .. how will i get right answer
--
Alayn Gortazar
Irontec, Internet y Sistemas sobre GNU/LinuX - http://www.irontec.com
+34 94.404.81.82
x27;en_IN');
$weekList = Zend_Locale_Data::getList($locale,'week');
echo $weekList['firstDay']; // outputs: "sun"
--
Alayn Gortazar
Irontec, Internet y Sistemas sobre GNU/LinuX - http://www.irontec.com
+34 94.404.81.82
echo $date->get(Zend_Date::WEEK); //output 12, correct
>
> But if we give a sunday , it will not work correctly
>
> for example
>
> $date = new Zend_Date('21 Mar, 2010', null,
> Zend_Registry::get('Zend_Locale'));
> echo $date->get(Zend
y Courses > Course_Name_Here
I have tried multiple things by changing routes, navigation page names,
etc... But I don't find any way to have this working, and I'm a bit
stuck on this.
Any idea what I may be doing wrong? Shouldn't this work??
Am I at least pointing on the right direction??
Thanks in advance,
--
Alayn Gortazar
Irontec, Internet y Sistemas sobre GNU/LinuX - http://www.irontec.com
+34 94.404.81.82
El mié, 17-03-2010 a las 13:24 +0100, Саша Стаменковић escribió:
> I think only custom navigation partial can do this. Someone correct me
> if I'm wrong.
Taking a look to the code looks like you are right :(
--
Alayn Gortazar
Irontec, Internet y Sistemas sobre GNU/L
; now I have to add 'default' param to all of the links sitewide I
> generate with
> this->url.
> Is there a trick/tip or idea that i can solve this problem a bit more easily?
> Hope I made it clear.
>
> thanks in advance
You could override the url helper to make 'default' the default route...
class Custom_View_Helper_Url extends Zend_View_Helper_Url
{
public function url(array $urlOptions = array(), $name = null,
$reset = false, $encode = true)
{
if(is_null($name)){
$name = 'default';
}
return parent::url($urlOptions,$name,$reset,$encode);
}
}
--
Alayn Gortazar
Irontec, Internet y Sistemas sobre GNU/LinuX - http://www.irontec.com
+34 94.404.81.82
he parameters are ident=contatti and language=it
>
> Is possible ask this directly to the router?
To get the route from the controller you can use:
$bootstrap = $this->getInvokeArg('bootstrap');
$route = $bootstrap->getResource('router')->getCurrentRouteName();
To get the language param, just as usual:
$this->getRequest()->getParam('language');
--
Alayn Gortazar
Irontec, Internet y Sistemas sobre GNU/LinuX - http://www.irontec.com
+34 94.404.81.82
ke your validator accept Emptiable objects along with strings,
> arrays, ints, etc.
>
>
> Maybe you can come up with a better name than Emptiable :)
Yep you can always extend NotEmpty validator and add particular cases.
I was just wondering if Zend really needed such a "feature
tion. An "empty" object is actually a Null Object pattern:
> http://en.wikipedia.org/wiki/Null_Object_pattern
>
So it looks like it has sense not being able to test it with the
NotEmpty validator...
:)
--
Alayn Gortazar
Irontec, Internet y Sistemas sobre GNU/LinuX - http://www.irontec.com
+34 94.404.81.82
r not??
PHP's empty function doc says:
As of PHP 5, objects with no properties are no longer considered empty.
So what is an empty object??
--
Alayn Gortazar
Irontec, Internet y Sistemas sobre GNU/LinuX - http://www.irontec.com
+34 94.404.81.82
x27;, array('tag' => 'div', 'requiredPrefix' => '* ')),
array('HtmlTag', array('tag' => 'div', 'class' => 'precol80
col320')),
'Errors'
)
);
I think that
ther systems too...),
I had to make this change to have the Image captcha working as it must, that's
why I extend and overrided the _generateImage($id,$word) function:
Change:
$texbox = imageftbbox($fsize, 0, $font, $word);
With:
do{
$textbox = imageftbbox($fsize, 0, $font, $word);
}
x27; => '/images/captcha',
'fontSize' => 30,
'wordLen' => 5,
'timeout' => 300
),
));
$this->captcha->addPrefixPath('My_Captcha','My/Captcha','captcha');
==
Any idea of what I'm doing wrong??
--
Alayn Gortazar
27;default';
}
return parent::url($urlOptions,$name,$reset,$encode);
}
}
--
Alayn Gortazar
- "umpirsky" escribió:
> Naah, I expected default route to be used. is there a waz around this.
> It's a
> drag to change null to default on all places :(
>
&
lse], [ $encode = true])
* array $urlOptions: Options passed to the assemble method of the Route
object.
* mixed $name: The name of a Route to use. If null it will use the current
Route
* bool $reset: Whether or not to reset the route defaults with those
provided
* $encode
---
Cheers,
--
Alayn Gortazar
Hi Diego,
You can get the Controllers instance with Zend_Controller_Front::getInstance(),
so:
$controllerName =
Zend_Controller_Front::getInstance()->getRequest()->getControllerName();
--
Alayn Gortazar
- Mensaje original -
De: "Diego Potapczuk"
Para: fw-genera
http://framework.zend.com/manual/en/zend.db.select.html#zend.db.select.building.order
"In Zend_Db_Select, you can use the order() method to specify a column
or an array of columns by which to sort. Each element of the array is a
string naming a column. Optionally with the ASC DESC keyword followin
Have you tried with something like:
$form->setElementDecorators(
.
.
.
);
$form->third_element_name->setDecorators(
.
.
.
);
I think it should work...
El mar, 29-09-2009 a las 06:46 -0700, umpirsky escribió:
> Hi.
>
> I'm trying to do the followi
El mié, 23-09-2009 a las 08:53 -0400, Matthew Weier O'Phinney escribió:
> -- alayn wrote
> (on Wednesday, 23 September 2009, 01:04 PM +0200):
> > El mié, 23-09-2009 a las 06:51 -0400, Matthew Weier O'Phinney escribió:
> > > We make a point never to delete posts.
hread through the Nabble interface, cause there
was no way to get it started through my email client. :(
--
Alayn Gortazar
his spammers list??
O:)
Thanks in advance,
--
Alayn Gortazar
Nobody is using Debian and Captchas?? Just to know if you are not having
the same issue...
El dom, 20-09-2009 a las 07:18 -0700, Alayn Gortazar escribió:
> Hi everybody,
>
> I'm using a captcha element and I'm having some curious behaviour, as it
> randomly shows em
aptcha' => 'Image',
'font' => APPLICATION_PATH . "/fonts/Arial_Bold.ttf",
'imgUrl' => $getBaseUrl."/images/captcha",
'fontSize' => 30,
'wordLen' => 5,
If you don't want to use any specific route, you can just use "default"
as the second argument.
Cheers,
--
Alayn Gortazar
(meaning the save(),
delete() and any field-setting methods will throw an exception)."
http://framework.zend.com/manual/en/zend.db.table.html
So I think the answer is yes, it is a good solution
--
Alayn Gortazar
El jue, 17-09-2009 a las 03:09 -0700, aoohralex escribió:
> Your s
7;b' => 'books'))
->join(array('a' => 'authorsy'), 'b.id =
a.id_book');
return $this->fetchAll($select);
}
--
Alayn Gortazar
El jue, 17-09-2009 a las 02:45 -0700, aoohralex escribió:
> Select query cannot join with another table
38 matches
Mail list logo