Re: ACL tutorial

2009-12-01 Thread andrzejborkow...@gmail.com
function logout() { $this-Auth-logout(); $this-redirect('/', null, true); } this fully work Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are

Re: saveAll - fieldList question

2009-12-01 Thread andrzejborkow...@gmail.com
i have the same problem lok at api i think this havent solution now.. On 30 Lis, 22:05, Raph ra...@epoczta.pl wrote: Well, It's not very elegant solution and I need to make those inserts in one transaction. On 13 Lis, 23:47, David Roda davidcr...@gmail.com wrote: I would probably split

Re: User logs out when doing too much ajax function

2009-12-01 Thread andrzejborkow...@gmail.com
yeah i think had the same problem but session time solved my problem... On 29 Lis, 14:55, Ixus asumaw...@gmail.com wrote: Hi, I'm wondering if it's normal that my application logs out a user after let's say he clicks a checkbox like crazy which triggers an Ajax action? Check out the new

Re: ROLLBACK in saveAll pass if statment

2009-12-01 Thread andrzejborkow...@gmail.com
, andrzejborkow...@gmail.com andrzejborkow...@gmail.com wrote: if (  $userValidate $userProfileValidate $this-User-saveAll ($this-data,array('validate'=false))) { //$sendRegisterEmail } so saveAll pass true, even dont commit data (rollback true ;P) any solutions ? Check out the new

ROLLBACK in saveAll pass if statment

2009-11-26 Thread andrzejborkow...@gmail.com
if ( $userValidate $userProfileValidate $this-User-saveAll ($this-data,array('validate'=false))) { //$sendRegisterEmail } so saveAll pass true, even dont commit data (rollback true ;P) any solutions ? Check out the new CakePHP Questions site http://cakeqs.org and help others with their

best merge port with po translation

2009-11-19 Thread andrzejborkow...@gmail.com
how is best solutions for merge exist po translation (stay translated msgid) with new extract pot file (empty msgstr) ? -- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-...@googlegroups.com. To unsubscribe

Re: If User changes info?

2009-11-12 Thread andrzejborkow...@gmail.com
u should add `email_temp` field in users table and overwrite `email` after click information email i this is best method.. On 12 Lis, 17:49, Dave make.cake.b...@gmail.com wrote: What is the best way to determine if a user changes a specific field when updating account? I want to suspend the

Re: Header Removal

2009-11-12 Thread andrzejborkow...@gmail.com
action(){ $this-layout = false; } On 12 Lis, 17:10, jburns jeremybu...@me.com wrote: Not sure I totally get what you mean, but have you created your own default layout? If not, do so, and then you can control the header. Seehttp://book.cakephp.org/view/96/Layouts On Nov 12, 10:20 am,

Re: Howto save NULL for a date field?

2009-11-12 Thread andrzejborkow...@gmail.com
beforeSave(){ if($this-data['date_field']=='-00-00') unset($this-data['date_field']); this set NULL for data_field On 12 Lis, 14:38, Braindead markus.he...@gmail.com wrote: Hi all, In my form I have a date field. I use the form helper to generate a year, month and day field for the date.

Re: Header Removal

2009-11-12 Thread andrzejborkow...@gmail.com
[autoRender] = 0 [autoLayout] = 0 On 12 Lis, 11:20, lionmate bensongeor...@gmail.com wrote: Ho w iremove header in cake? -- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-...@googlegroups.com. To unsubscribe

Re: how to insert data?

2009-11-12 Thread andrzejborkow...@gmail.com
man u have a good show by example post model so check it http://book.cakephp.org/view/334/Create-a-Post-Model On 12 Lis, 03:52, ChiCake chirag.patel6...@gmail.com wrote: I have experience of Codeignitor, but rite now i am learning cake, can you please tell how to insert data in cake? i have

Re: Trouble getting relationship information in my view

2009-11-12 Thread andrzejborkow...@gmail.com
filesname and model names should be in singular name e' = 'Thesis', - theses etc... On 12 Lis, 00:08, death.au death...@gmail.com wrote: If anyone's interested, it turns out it WAS a really noobish problem. I had the filenames for my models plural instead of singular (Category model was in

Re: ACL issue

2009-11-10 Thread andrzejborkow...@gmail.com
On 3 Lis, 17:17, kwameda...@gmail.com kwameda...@gmail.com wrote: Please help me resolve this ACL issue. I'm going through the tutorial 10.2.6 An Automated tool for creating ACOs (http://book.cakephp.org/view/647/An-Automated-tool-for-creating- ACOs) and getting stuck with the following

Re: Containable together with Translate Behavior

2009-11-10 Thread andrzejborkow...@gmail.com
maybe put in before find in B $this-B-behaviors-attach ('Translate'); its stupid solutions but maybe work.. On 2 Lis, 16:43, Marco marco.lehman...@googlemail.com wrote: Had to add some facts: I removed AppModel's beforeFind and beforeSave (I forgot to write Config.language, which is used by

behaviors stop work in plugin

2009-11-08 Thread andrzejborkow...@gmail.com
i have works content model and bahaviors (/app/model/behaviors/ [multivalidatable, who_did_it]) ?php class Content extends AppModel { public $name = 'Content'; public $actsAs = array('Multivalidatable', 'WhoDidIt'); [...] so when im put content model to a contents plugin my

cakephp don't execute model trigger plugin's

2009-10-03 Thread andrzejborkow...@gmail.com
save section is ok, but this triger beforeSave don't execute and dont return any value, only working trigers are in LikecontentAppModel whats going one ? ?php class LikecontentSection extends LikecontentAppModel { public $validate = array( 'title' = array('notempty'),

form plugin

2009-09-09 Thread andrzejborkow...@gmail.com
WTF loks at namespaces LikecontentSection Section my VIEW ?php echo $form-create('Section',array ('plugin'='likecontent','controller'='sections','action'='add'));? fieldset legend?php __('Add');?/legend

change route after authroize users

2009-08-31 Thread andrzejborkow...@gmail.com
i want to change default route after login my users, i try like this: [/project/app_controller.php] public function beforeFilter() { (...) if($this-Auth-user()){ Router::connect('/', array('controller' = 'users', 'action' = 'profile')); Router::promote();

wtf find id=1

2009-08-13 Thread andrzejborkow...@gmail.com
fk find(){ echo $id; //3 debug($this-Position-find('all',array('conditions' = array ('position_id'=$id),'fields'='position,position_id'))); } at page miopromo\controllers\signups_controller.php (line 70) Array ( [0] = Array ( [Position] = Array

zend profiller and configure.php 67% of available resources

2009-06-24 Thread andrzejborkow...@gmail.com
its a normal situation ? file configure.php load 67% of available resources lease check datasheat http://images47.fotosik.pl/150/0bfee59431dc96d6.png --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group.

invalid tree model struct in Xml

2009-05-28 Thread andrzejborkow...@gmail.com
so i have problem with Xml component my arry from find loks like that array( [Invoice] = array(...) [Seler] = array(...) so its good... after $xml = new Xml($invoice); xml loks like that (this is stupid...) invoice ... /seler .../invoice after $result = Set::reverse($xml); arr loks like

[cakephp r.8147] email component and smtp error +OK 27407.1240210...@sword3

2009-04-20 Thread andrzejborkow...@gmail.com
i try sent email by $this-Email-to = $email; $config['Email']['from'] = 'andrzej.borkow...@lowcy.com.pl'; $config['Email']['fromName'] = 'a.borkowski'; $config['Email']['port'] = '110'; $config['Email']['host'] = 'poczta.hti.pl'; $config['Email']['username'] = 'andrzej.borkow...@lowcy.com.pl';

empty query and 55ms - debug

2009-02-28 Thread andrzejborkow...@gmail.com
Nr Query Error AffectedNum. rows Took (ms) 1 DESCRIBE `locations`5 5 3 2 DESCRIBE `countries`4 4 4 3 DESCRIBE `cities` 4 4 3 4 DESCRIBE `states` 3 3 3

unload app_controller to force speed :)

2009-02-27 Thread andrzejborkow...@gmail.com
I think so its simple but not for me :) I want unload app_controller in /app/controllers/sugest_controller.php so i create /app/xhr_controller.php extends Controller class XhrController extends Controller { public $components = array('xhr'); public $helpers = array(); public $uses =