Re: [fw-general] Re: Zend form is not showing up

2013-01-15 Thread Alayn Gortazar
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

Re: [fw-general] Zend_Form textarea quoting issue

2012-11-19 Thread Alayn Gortazar
gt; // index.phtml > > $form = $this->form; > $form->setAttribute('action', $this->url('home')); > $form->prepare(); > ?> > > form()->openTag($form); ?> > formRow($form->get('text')); ?> > formSubmit($fo

[fw-general] Best way for handling Zend_Date and timezones

2012-02-23 Thread Alayn Gortazar
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

Re: [fw-general] Re: Best practices, environment setup

2012-02-14 Thread Alayn Gortazar
> 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

Re: [fw-general] Loading non-default Resources in the Autoloader

2012-01-17 Thread Alayn Gortazar
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

Re: [fw-general] StringTrim filter problem

2011-06-20 Thread Alayn Gortazar
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

Re: [fw-general] StringTrim filter problem

2011-06-17 Thread Alayn Gortazar
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

Re: [fw-general] Working with multilanguage routers in Zend

2011-06-14 Thread Alayn Gortazar
tion' => 'index' > ), > $this->_front->getDispatcher(), > $this->_front->getRequest() > ); > > $module->isAbstract(true); > > $default = new Zend_Controller_Router_Route_Chain(); > $default->chain($language); > $default->chain(

Re: [fw-general] Re: Model - Controller paginator

2010-07-07 Thread Alayn Gortazar
$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

Re: [fw-general] Reconnect to "enhanced" row

2010-04-12 Thread 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,

Re: [fw-general] Odd Zend_Db_Table_Abstract error, is it me or a bug?

2010-04-12 Thread Alayn Gortazar
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

[fw-general] Reconnect to "enhanced" row

2010-04-12 Thread Alayn Gortazar
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

Re: [fw-general] Difference between days using zend

2010-03-25 Thread Alayn Gortazar
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

Re: [fw-general] Re: Problem in getting week number of sundays , in zend

2010-03-24 Thread Alayn Gortazar
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

Re: [fw-general] Problem in getting week number of sundays , in zend

2010-03-24 Thread Alayn Gortazar
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

[fw-general] Zend_Navigation and Breadcrumbs

2010-03-22 Thread Alayn Gortazar
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

Re: [fw-general] How can I insert class name for Zend Navigation generated menu?

2010-03-17 Thread Alayn Gortazar
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

Re: [fw-general] custom route problem

2010-03-12 Thread Alayn Gortazar
; 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

Re: [fw-general] Find Route from a generic URL?

2010-03-11 Thread Alayn Gortazar
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

Re: [fw-general] Zend_Validate_NotEmpty and Object

2010-03-04 Thread Alayn Gortazar
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

Re: [fw-general] Zend_Validate_NotEmpty and Object

2010-03-04 Thread Alayn Gortazar
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

Re: [fw-general] Zend_Validate_NotEmpty and Object

2010-03-04 Thread Alayn Gortazar
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

Re: [fw-general] Re: Captcha Form Element

2010-01-29 Thread Alayn Gortazar
x27;, array('tag' => 'div', 'requiredPrefix' => '* ')), array('HtmlTag', array('tag' => 'div', 'class' => 'precol80 col320')), 'Errors' ) ); I think that

Re: [fw-general] Troubles with custom captcha adapters

2009-12-15 Thread Alayn Gortazar
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); }

[fw-general] Troubles with custom captcha adapters

2009-12-14 Thread Alayn Gortazar
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

Re: [fw-general] Adding simple route in application.ini

2009-12-13 Thread 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 :( > &

Re: [fw-general] Adding simple route in application.ini

2009-12-13 Thread Alayn Gortazar
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

Re: [fw-general] Re: Accessing the controller's name from layout

2009-11-04 Thread 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

Re: [fw-general] descending sorting using object of "Zen_Db_Select()"

2009-10-07 Thread alayn
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

Re: [fw-general] Decorators again

2009-09-29 Thread alayn
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

Re: [fw-general] Is there anybody from Zend team ?

2009-09-23 Thread alayn
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.

Re: [fw-general] Is there anybody from Zend team ?

2009-09-23 Thread alayn
hread through the Nabble interface, cause there was no way to get it started through my email client. :( -- Alayn Gortazar

Re: [fw-general] Is there anybody from Zend team ?

2009-09-23 Thread alayn
his spammers list?? O:) Thanks in advance, -- Alayn Gortazar

Re: [fw-general] Anyone having troubles with random empty captchas??

2009-09-22 Thread alayn
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

[fw-general] Anyone having troubles with random empty captchas??

2009-09-20 Thread Alayn Gortazar
aptcha' => 'Image', 'font' => APPLICATION_PATH . "/fonts/Arial_Bold.ttf", 'imgUrl' => $getBaseUrl."/images/captcha", 'fontSize' => 30, 'wordLen' => 5,

RE: [fw-general] url($urlOptions, $name, $reset) - what is $name ?

2009-09-18 Thread alayn
If you don't want to use any specific route, you can just use "default" as the second argument. Cheers, -- Alayn Gortazar

Re: [fw-general] I have an eror: Select query cannot join with another table

2009-09-17 Thread alayn
(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

Re: [fw-general] I have an eror: Select query cannot join with another table

2009-09-17 Thread alayn
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