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

2009-09-23 Thread aoohralex
My critical subject about Zend Framework was deleted. Somebody from Zend deleted my post. My criticism PHP authors and Zend Framework in compare to other frameworks wasn't comfortable for Zend company. You can don't agree with me but delete my subject ? So again: I have started learn ZF because I

[fw-general] grade zend framework and compared to Symfony and ASP.NET MVC

2009-09-22 Thread aoohralex
Sry for my English – it isn't my national language. I have started learn ZF because I wanted to learn something new. If we have range 0 – 10. My knowledge ZF is 1 – I can make basic things in ZF – connect to database, queries insert/update/delete, basic zend forms, authorization, use jquery and l

[fw-general] 2 actions my controller must be access for only loged users

2009-09-21 Thread aoohralex
My login action is in controller AuthController in action LoginAction(). If I use Zend_Auth_Storage_Session() to store username logged persons and I would like to create that only logged users can go to action addBookAction() and removeBookAction() in controller LibraryController - should I add t

Re: [fw-general] how can I create Cancel button ?

2009-09-20 Thread aoohralex
Yes but I don't know where I should place library jQuery - in which catalog (for example in Symfony Framework and ASP.NET MVC default library is the most popular javascript library on the world - jQuery and I don't need to download, place and enable it). So I downloaded jQuery library and where I

Re: [fw-general] how can I create Cancel button ?

2009-09-20 Thread aoohralex
aoohralex wrote: > > I have action: > public function addBookAction() > { > $form = new Form_Books(); > > if ($this->getRequest()->isPost()) > { > $request = $this->getReq

[fw-general] how can I create Cancel button ?

2009-09-20 Thread aoohralex
I have action: public function addBookAction() { $form = new Form_Books(); if ($this->getRequest()->isPost()) { $request = $this->getRequest(); if ($form->isValid($request->getPost())

Re: [fw-general] error messages in form

2009-09-20 Thread aoohralex
Joo thx for help. Thx Joo and thx this website (I have found it today): http://www.oplabo.com/article/12 I have created: array( 'NotEmpty', true, array( 'messages' => array( 'isEmpty' => 'Name is required.' ))),

[fw-general] error messages in form

2009-09-19 Thread aoohralex
I must create my own 3. error communicates for field - 'name' - in Symfony Framework it would be: $this->setValidators(array( 'name' => new sfValidatorString(array('min_length' => 2, 'max_length' => 50, 'trim' => true), array('required' => 'Name is required.', 'min_length' =>

Re: [fw-general] list of validators in Zend like in Symfony Framework

2009-09-19 Thread aoohralex
ok - thx - I searched in bad place - in Zen_Forms I have one more question - what is the difference between Digits and Int - Digits can have only numbers and Int can have only numbers - I don't know what I should use ?? -- View this message in context: http://www.nabble.com/list-of-validators-

[fw-general] list of validators in Zend like in Symfony Framework

2009-09-19 Thread aoohralex
Where is list of validators in Zend ? Here rather not: http://framework.zend.com/manual/en/zend.form.elements.html#zend.form.elements.validators In Symfony Framework I have in documentation list of all validator: http://www.symfony-project.org/api/1_2/validator I need integer validator and numbe

Re: [fw-general] strange problem with layout

2009-09-18 Thread aoohralex
I have know - I had in layout: headLink()->appendStylesheet('css/main.css') ?> WITHOUT SLASH AT THE BEGINNGING !! It should be: headLink()->appendStylesheet('/css/main.css') ?> and now everything is ok. -- View this message in context: http://www.nabble.com/strange-problem-with-layout-tp25508

[fw-general] strange problem with layout

2009-09-18 Thread aoohralex
I have a strange problem - when I write in url action layout doesn't work, I see only content of view - examples: it work: http://localhost:81/library it doesn't work: http://localhost:81/library/index but both adresses are the same (default action is index) - so how is it possible ? and here

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

2009-09-18 Thread aoohralex
ok thx alayn and Mon - I will use 'default' :) -- View this message in context: http://www.nabble.com/url%28%24urlOptions%2C-%24name%2C-%24reset%29---what-is-%24name---tp25491945p25508445.html Sent from the Zend Framework mailing list archive at Nabble.com.

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

2009-09-18 Thread aoohralex
Jan Pieper-2 wrote: > >> I completly don't understand. > > You can use a specific route (selected by $name) do build url with. > > Take a look at > http://framework.zend.com/manual/en/zend.controller.router.html#zend.controller.router.basic > > -- Jan > I have read and I still don't unders

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

2009-09-18 Thread aoohralex
I completly don't understand. -- View this message in context: http://www.nabble.com/url%28%24urlOptions%2C-%24name%2C-%24reset%29---what-is-%24name---tp25491945p25505948.html Sent from the Zend Framework mailing list archive at Nabble.com.

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

2009-09-17 Thread aoohralex
url($urlOptions, $name, $reset) - what is $name ? I understand $urlOptions and $reset. I don't understand $name. -- View this message in context: http://www.nabble.com/url%28%24urlOptions%2C-%24name%2C-%24reset%29---what-is-%24name---tp25491945p25491945.html Sent from the Zend Framework mailing

Re: [fw-general] HYDRATION like in Doctrine ORM in Symfony Framework

2009-09-17 Thread aoohralex
Zend_Db_Expr('GROUP_CONCAT(author)') - this is strange for me, I don't understand that so I don't want to use it - I MUST know and understand all code (I know that in ZF it isn't possible). getAdapter() - I also don't know that method. And I don't know how I can use it to show rows in that way

Re: [fw-general] HYDRATION like in Doctrine ORM in Symfony Framework

2009-09-17 Thread aoohralex
hm... it doesn't work for me: Specified column "author" is not in the row -- View this message in context: http://www.nabble.com/HYDRATION-like-in-Doctrine-ORM-in-Symfony-Framework-tp25490065p25490884.html Sent from the Zend Framework mailing list archive at Nabble.com.

[fw-general] HYDRATION like in Doctrine ORM in Symfony Framework

2009-09-17 Thread aoohralex
I have in database two tables: books: - id PK - title authors: - id PK - author - id_book FK 1 book can have many authors. I want to learn ZF so database doesn't matter (I know it should be that also 1 author can have many books and it shouldn't be column 'author' but column 'name' and 'surname'

Re: [fw-general] Setting different error controllers

2009-09-17 Thread aoohralex
thx alayn :) -- View this message in context: http://www.nabble.com/I-have-an-eror%3A-Select-query-cannot-join-with-another-table-tp25488217p25489419.html Sent from the Zend Framework mailing list archive at Nabble.com.

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

2009-09-17 Thread aoohralex
Your solution works but as I understand it disables checking integrity data in database - is it good and normal solution in Zend Framework ? I would like to use good style programming. Is this a good solution - disabling checking integrity ? -- View this message in context: http://www.nabble.c

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

2009-09-17 Thread aoohralex
I have in database two tables: books: - id PK - title authors: - id PK - author - id_book FK 1 book can have many authors. I want to learn ZF so database doesn't matter (I know it should be that also 1 author can have many books and it shouldn't be column 'author' but column 'name' and 'surname'

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

2009-09-16 Thread aoohralex
One year ago I knew one person who used Zend Framework. One day he had to modify (add something) somebody's website wrote in Zend Framework but he had to write everything from the beginning. He was then very angry and he said me why. Do you know ? Bacause ZF was so flexible that somebody created

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

2009-09-16 Thread aoohralex
So you think this is a mistake that these things are in Symfony Framework, ASP.NET Framework and many others frameworks ? :) -- View this message in context: http://www.nabble.com/Is-there-anybody-from-Zend-team---tp25455352p25474309.html Sent from the Zend Framework mailing list archive at Nabb

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

2009-09-16 Thread aoohralex
thx Carlton - this tutorial helped me: http://akrabat.com/wp-content/uploads/getting-started-with-zend-framework-163.pdf Now I have at least connection to database (I checked - I can show something from my database) Matthew Weier I think 99% hostings in my country don't allow to modify httpd.co

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

2009-09-16 Thread aoohralex
Carlton layout should be by default with content: layout()->content ?> and then everybody will be happy. Based on Yours instructions how to connect to database: http://framework.zend.com/manual/en/zend.db.html#zend.db.adapter.connecting.factory-config I have: $config = new Zend_Config(

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

2009-09-16 Thread aoohralex
Matthew: ok - I needn't register to download ZF, but I didn't see these links at the bottom of page and I thought that I must register to download ZF. You have given me link: http://framework.zend.com/wiki/display/ZFDEV/Configuring+Your+URL+Rewriter http://framework.zend.com/wiki/display/ZFDEV/Co

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

2009-09-15 Thread aoohralex
Yes I have more questions :) I know Symfony Framework and SF is MORE comfortable but I have some questions about ZF: 1. Why I must register to download ZF ? 2. Why after generate ZF project using console: zf.bat create project quickstart and after placed it on the server it DOESN'T WORK !! I mus

Re: [fw-general] Why I don't have css !! ??

2009-09-15 Thread aoohralex
I have written in .htaccess: RewriteEngine On RewriteRule ^(.*)$ /project/public/$1 [QSA,L] and css works !! Yes - my site is in project/ folder because I have written in console: zf.bat create project project and all files were generated in folder 'project' so in tutorial somebody should write

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

2009-09-15 Thread aoohralex
Is there anybody from Zend team - people who are developing Zend ? -- View this message in context: http://www.nabble.com/Is-there-anybody-from-Zend-team---tp25455352p25455352.html Sent from the Zend Framework mailing list archive at Nabble.com.