Re: inserting more layers into cake php

2008-06-21 Thread Marcin Domanski aka kabturek
hey On Jun 20, 4:24 pm, Ian Zepp [EMAIL PROTECTED] wrote: Unlike Zend (with uses an Action suffix to designate controller actions), Cake doesn't have any such thing and instead uses a blacklist of 'private' controller actions (defined in the dispatcher). We don't ? We've got something that is

Re: Cookbook overhaul proposal

2008-05-12 Thread Marcin Domanski aka kabturek
You can use one of the workarounds presented here on the group for the pdf version but you may expect improvements soon (in speed and in other formats) On May 12, 7:51 pm, Mathew Nik Foscarini [EMAIL PROTECTED] wrote: While this subject is open. I would like to be able to download the manual,

Re: Is it possible to validate a file upload?

2008-01-11 Thread Marcin Domanski aka kabturek
not empty. Use custom validation to check if ['Remarks']['tmp_name'] is not empty, ['error;[ == 0 , and ['size'] != 0 etc HTH, Marcin Domanski aka kabturek http://tumble.kabturek.info/ --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Fixtures problem in Cake 1.2

2008-01-11 Thread Marcin Domanski aka kabturek
the test case: http://bin.cakephp.org/view/1981319085 fixtures: http://bin.cakephp.org/view/988525363 works like a charm :) HTH, Marcin Domanski aka kabturek http://tumble.kabturek.info On Jan 11, 4:44 pm, ivlcic [EMAIL PROTECTED] wrote: Robby, can you share your working code with us, because

Re: Pagnation with multiple Models

2008-01-11 Thread Marcin Domanski aka kabturek
, Marcin Domanski aka kabturek On Jan 11, 3:05 pm, Johan @ Notitia.nl [EMAIL PROTECTED] wrote: Hi, I'm building a search controller which has to retrieve data from multiple tabels. Normaly that wouldn't be a problem if you have set the correct association at the models. The big problem

Re: How to connect multiple databases?

2008-01-11 Thread Marcin Domanski aka kabturek
://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/ Marcin Domanski aka kabturek, http://tumble.kabturek.info --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email

Re: CakePHP weekly summaries

2008-01-05 Thread Marcin Domanski aka kabturek
Great Jippi! You're my hero ;) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL

Re: Auth Component W/ Remember Me Cookie (1.2 beta)

2008-01-05 Thread Marcin Domanski aka kabturek
Hey Baz I dont like useing user/pass - i rather use id, if something will be compromised then i would have to change my hash/login system only and no user data would be lost ( we have an cookie encryption functionality ya know) I did it this way - when the user is loggged i check if hewants to

Re: bakery hates me

2008-01-03 Thread Marcin Domanski aka kabturek
1. If you read my first post you'll notice I'm bagging out an article that was approved on the bakery. Did anyone click the link and read the article - if so, who agrees with my response? Yep thought the same thing when i sow it. 2. What version of cake is the bakery running on?

Re: Class, filename and naming conventions

2007-12-20 Thread Marcin Domanski aka kabturek
mhm sorry but you're aware of the fat models , thin controllers idea ? imo let's stick to it. in you example you should have a controller with admin_actions and using the same model. If many of the structures are the same then just put them in the same model and call them from admin/user

Re: dependent=true not working

2007-12-16 Thread Marcin Domanski aka kabturek
when delating do you set the 'cascade' param ? On Dec 16, 6:37 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Here is my model class Question extends AppModel { var $name = 'Question'; var $validate = array( 'question' = VALID_NOT_EMPTY,

Re: How can I build a Forum with Cake?

2007-12-16 Thread Marcin Domanski aka kabturek
Exactly like any other app: create tables, bake models, views , controllers, edit the generated stuff to suit your needs :) On Dec 15, 10:31 pm, 703designs [EMAIL PROTECTED] wrote: Can someone help me out? I'd like to build a forum using CakePHP. I'll end up documenting my efforts in a

Re: Model Queries inside Model Objects?

2007-12-15 Thread Marcin Domanski aka kabturek
$this-findBy* from the User model you can access the associated model using $this-AssociatedModel- find... you should stick most of the model/query stuff inside models (fat models, thin controllers) loading models is an option but it really depends on the situation - generally you shouldnt load

Re: CakePHP and VBulletin

2007-12-13 Thread Marcin Domanski aka kabturek
As it happens, I have recently done this. I'll send an email off list for you to contact me. -Simon Hey Simon - don't be shy - share Your solution here:) not that i'm interested but many people would find it usefull. You can also get feedback about your solution. As for the integreation i

Re: Using PHP 5 Functionality In Your App

2007-12-07 Thread Marcin Domanski aka kabturek
http://www.gophp5.org/ :) On Dec 6, 7:22 pm, Sliv [EMAIL PROTECTED] wrote: I was wondering if developers out there who are writing CakePHP apps in a PHP 5 environment are using PHP 5 functionality in their app(s) or are choosing to stick with functionality available in 4 or 5? Since Cake is

Re: Best Practices/Method - Search to Return Results (With Paginate)

2007-12-05 Thread Marcin Domanski aka kabturek
http://wiki.kabturek.info/paginating_search_results HTH On Dec 5, 3:57 pm, Baz [EMAIL PROTECTED] wrote: Got a quick question. I'm trying to implement a custom search on a model that returns based on the user's criteria. Basically I have a bunch of if statements and build up a query before

FOSDEM 2008 Brussels , Belgium 23-24 February

2007-12-03 Thread Marcin Domanski aka kabturek
with some mates. It might be a good opportunity for European bakers to meet. Hope to see some of you there :) -- Marcin Domanski aka kabturek http://tumble.kabturek.info --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Replace for VALID_NOT_EMPTY?

2007-12-01 Thread Marcin Domanski aka kabturek
Hey 'nonEmpty' = array( 'rule' = VALID_NOT_EMPTY 'required' = true, 'allowEmpty' = false, 'message' = 'You must to put something.' ) looks like you didnt' replace VALID_NOT_EMPTY ;) here is what i use: 'field' =

Re: published/unpublished mode with search conditions

2007-11-24 Thread Marcin Domanski aka kabturek
Hey, You can look at the Soft Delete behavior as an example - it ads a default condition 'deleted' = 0 to all queries if you don't have a 'delete' key in the conditions. btw for me supporting strings isn't worth the extra code complexity ;) On Nov 24, 4:05 pm, Adam Royle [EMAIL PROTECTED]

Re: AuthComponent problems when using with Admin Routing

2007-11-17 Thread Marcin Domanski aka kabturek
hmm you can A) make an empty action admin_login to redirect B) spcify 'admin' = false in the login url in the auth component (not tested but should work) hth, kabturek On Nov 16, 7:34 pm, glassy [EMAIL PROTECTED] wrote: Hi all, I'm starting to use AuthComponent and I'm also using Admin

Re: Extending the Form Helper to change output HTML?

2007-11-15 Thread Marcin Domanski aka kabturek
? Grant++ HTH, kabturek --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED

Re: model transaction on multiple models

2007-11-15 Thread Marcin Domanski aka kabturek
this so maybe someone can comment on it:) HTH, kabturek --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group

Re: jQuery $.ajax() and on success result processing?

2007-11-15 Thread Marcin Domanski aka kabturek
with the right $id. Anyone know how to do that? I'm not really getting why you need jqery for that ;) greets, kabturek --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email

Re: Installing cake on top of another cake application

2007-11-11 Thread Marcin Domanski aka kabturek
to change the DocumentRoot ? you can try settings the subdomain apps as plugins maybe ? Another thing to try as for the .htaccess - Add RewriteBase dir after RewriteEngine on HTH, kabturek --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Building a forum plug-in

2007-11-04 Thread Marcin Domanski aka kabturek
On Nov 3, 7:23 am, Cheeze [EMAIL PROTECTED] wrote: I've seen many projects with a lot of talk at the beginning but nothing concrete was done about it. or the codebase wasn't released ;) Perhaps the guys who really need should start something first? And if there are people who want more

Re: Cake Translation Application plugin

2007-11-04 Thread Marcin Domanski aka kabturek
On Nov 4, 8:24 am, julian [EMAIL PROTECTED] wrote: If not I guess i am going to have to write one, any one interested in helping? I thought about such app some time ago. i have a draft of the db etc So if you really want to write something (and have time to do it ;) contact me so we can think

Re: CakePHP miniFORUM

2007-10-21 Thread Marcin Domanski aka kabturek
Implementing the basics would be very easy with cake.. ive made some very simple forum additions already... but the power of the forums is the admin/moderator area and all these funtions... I sow somewhere a dbdesigner diagram of PhpNuts plans to build one but i think he's busy with 1.2 now :)

Re: Modules?

2007-10-11 Thread Marcin Domanski aka kabturek
On Oct 10, 3:24 pm, stefanb [EMAIL PROTECTED] wrote: Thank you for the second half of your reply. The first half didn't help me at all. The first part should help you realize that you should first invest some time by looking at the manual. If you don't have time to do it why do you think ppl

Re: Linking to non-admin portion of site with HTML helper...

2007-10-11 Thread Marcin Domanski aka kabturek
Yeah tthat's the way. i used 'CAKE_ADMIN' = 'false' but as it is deprecated then i use 'admin' too :) On Oct 10, 8:25 am, Geoff Ford [EMAIL PROTECTED] wrote: Try ?php echo $html-link('Home', array('controller'='docs', 'action'='index', admin=false)); ? Note tested though. Geoff

Re: Dedicated server: which Linux distribution?

2007-10-11 Thread Marcin Domanski aka kabturek
gentoo for performance , debian for stability i heard many ppl use CentOS but i don't have much experience with it. imo you can't go wrong with debian and centos. greets, On Oct 10, 7:16 pm, cakeFreak [EMAIL PROTECTED] wrote: Cheers MJ Ray! Anyone about CentOS? Dan

Re: CakaPHP in SOA

2007-10-04 Thread Marcin Domanski aka kabturek
or maybe disable the autocreation of session in core.php ? hint - AUTO_SESSION = false On Oct 2, 11:45 pm, CodeSith [EMAIL PROTECTED] wrote: Anybody uses CakePHP in SOA environment? I want to write some REST based web services using CakePHP. To get it going is pretty simple. I will use

Re: Editor x CakePHP

2007-09-09 Thread Marcin Domanski aka kabturek
omg please dont stop another one :/ Pisinho search the group before asking On Sep 9, 2:40 am, haj [EMAIL PROTECTED] wrote: if it can do 2 bytes.. On Sep 8, 7:15 pm, Felix Geisendörfer [EMAIL PROTECTED] wrote: [x] Textmate -- My Blog:http://www.thinkingphp.org

Re: New Collaboration App developed on CakePHP

2007-09-05 Thread Marcin Domanski aka kabturek
Hey nice app :) Did you think about writing a case study on the bakery ? Couple of things: * I would use a standard feed icon :http://www.feedicons.com/ with the right size (or resize the one you use now - resizing by browser doesn't look too good) * the image that show the examples (when nothing

Re: 1.2 updateAll does no validation

2007-08-24 Thread Marcin Domanski aka kabturek
You are aware that you can call Model-validate() yourself? On Aug 24, 4:17 am, Dani [EMAIL PROTECTED] wrote: Wouldn't it be cool if updateAll had a validate parameter just like save? By the way, what's the purpose of updateAll() if it's not save()-ing a lot of rows at once? Happy coding!

Re: new With Associations in a HABTM

2007-08-21 Thread Marcin Domanski aka kabturek
, but the beforesafe errors on saving a post and the Post and Tag are not accessible from the view. Any further help would be appreciated ! Thanks in advance, Max On 20 aug, 10:48, Marcin Domanski aka kabturek [EMAIL PROTECTED] wrote: have you created the model ? On Aug 19, 5:04 pm

Re: new With Associations in a HABTM

2007-08-20 Thread Marcin Domanski aka kabturek
have you created the model ? On Aug 19, 5:04 pm, doekie [EMAIL PROTECTED] wrote: In the OCPHP sheets (http://www.cakephp.org/files/OCPHP.pdf) there was an example of the use of the new With Associations in a HABTM. So it must be easy to get values out-of the join-table in CakePHP 1.2 var

Re: How I created a global record search

2007-08-12 Thread kabturek
at Xapian myself so aonly a link: http://www.xapian.org/ greets, Marcin Domanski aka kabturek On Aug 11, 8:31 pm, savagekabbage [EMAIL PROTECTED] wrote: I wanted to incorporate a simple Global Record Search into my cart (Selling Made Simple), and this is how I did it if anyone's wondering

Re: $this-Model-AssociatedModel

2007-08-12 Thread kabturek
$this-User-Post-find(array('Post.user_id' = $user['User']['id']); it would search in all posts that have the user_id set to $user['User'] ['id']. its the same as when you have Post in uses $this-Post-find(array('Post.user_id' = $user['User']['id']); You will always learn new things cause cake is

Re: problem with validator cakephp 1.2

2007-08-12 Thread kabturek
Where do you set the data for the model ? like $this-Model-create($this-data); OR $this-Model-set($this-data) OR or $this-Model-save($this-data) ? also use the new validation approach in 1.2 http://bakery.cakephp.org/articles/view/multiple-rules-of-validation-per-field-in-cakephp-1-2 and

Re: Help visualising relationships

2007-08-12 Thread kabturek
so to avoid having to redefine the relationship redefine ? what are you talking about ? Areas hasMany Lettings when the user deletes the letting then do not delete it from the db - just soft delete it. You got to provide more details... greets, Marcin Domanski aka kabturek On Aug 10, 6:31 pm

Re: Filtering using manually entered values

2007-08-12 Thread kabturek
above Cheers, Dave On Aug 10, 2:15 am, kabturek [EMAIL PROTECTED] wrote: Do a POST to the action when the users clicks submit in the form or do this with ajax if you don't want the whole page to be refreshed Also why are you using query ? its only for sql that can't be handled by cake

Re: Advice on Complex Model setup

2007-08-12 Thread Marcin Domanski aka kabturek
are you using 1.2 ? search a little for the 'with' key in the association properties of a HABTM - you can define a model for the join table. and then you have a join table with id , ingredient_id, recipe_id , quantity. i would do it that way if i understood you right :) On Aug 13, 1:14 am,

Re: Filtering using manually entered values

2007-08-10 Thread kabturek
Do a POST to the action when the users clicks submit in the form or do this with ajax if you don't want the whole page to be refreshed Also why are you using query ? its only for sql that can't be handled by cake and your's looks pretty basic. Generally you're doing a search box. autopromotion

Re: Is it reasonably easy to do this sort of inline editing with CakePHP

2007-08-06 Thread kabturek
nice... or maybe no to nice... isn't backward compat. - doesn't work when js is disabled ( if it's automatic they should've taken care of it) also i try to stay away from inline js. apart from that - this is JS stuff. doing something like this is a piece of cake ;) greets On Aug 6, 12:52 am,

Re: Paginating results of custom queries?

2007-08-02 Thread kabturek
by default paginator in 1.2 is doing a findAll with the conditions that you give him but if that's not enough for you then you can declare a paginate function in your model that will be used instead of findAll ( http://api.cakephp.org/1.2/libs_2controller_2controller_8php-source.html#l01100 )

Re: PHP 4 = Dead

2007-07-14 Thread kabturek
PHP4 = dead dreams... ;) On Jul 13, 10:56 pm, Mech7 [EMAIL PROTECTED] wrote: Well allmost in december it is no longer supported. http://php.net/ Today it is exactly three years ago since PHP 5 has been released. In those three years it has seen many improvements over PHP 4. PHP 5 is

Re: Dynamic Sidebar

2007-06-24 Thread kabturek
Hi turns cakephp into a proper cms omg im SO afraid ;) greets, On Jun 24, 4:34 am, Jonathan Langevin [EMAIL PROTECTED] wrote: so are you using beforeRender to pull your data as needed, to populate the sidebar elements? i'd be interested in seeing how someone turns cakephp into a proper cms,

Re: Commented Version of CakePHP Manual

2007-06-20 Thread kabturek
I would add my 2c: comments (first one moderated so we wont have how do i? comments ie - only tips etc) on manual.cakephp.org (ala php.net or something like http://www.djangobook.com/comment-help/) as for the wiki - we all know how it looked - it was really outdated. No one was mainataining it

Re: checking if a controller exists

2007-06-19 Thread kabturek
yo can always try class_exists() ;) http://php.net/class_exists greets, On Jun 19, 11:22 am, phpjoy [EMAIL PROTECTED] wrote: thanks a lot, that pretty much sums it up.. i see the right way is to loadController. i might send a suggestion about that.. there should be existsController or

Re: my little peace of Cake

2007-06-07 Thread kabturek
A little inspiration ? ;) http://www.ndesign-studio.com/ greets, -- Marcin Domanski http://kabturek.info On Jun 5, 11:23 am, 浪漫様 [EMAIL PROTECTED] wrote: Dear bakers, 1 week ago I finished my first Cake!! It took me only 2 weeks [ using just spare time mostly in the weekends ]. Is a web2.0

Re: For CakePHP Linux users: gedit snippets

2007-04-25 Thread kabturek
thx for the snippets - when i used gedit i had few but was too lazy to do the rest :) now im using jedit :) OT- whats the name of the wheather thing on the desktop form you screenshot ? :) my GF would be gratefull ;) greets On Apr 24, 5:59 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello

Re: error in default.thtml

2007-01-25 Thread kabturek
Hi On Jan 25, 6:58 am, lukemack [EMAIL PROTECTED] wrote: thanks guys - i resolved it by adding the helpers in cake\app_controller.php. what would be the point of having this in the \app folder? does it override the default one? You shouldn't edit anything in the /cake folder - these are the

Re: CakePHP Reference Project

2007-01-23 Thread kabturek
The whole idea is great but ... Why not write bakery articles about is ? And as far as i see it - there are many projects / snippets that show these things - you only have to look for it... I also liked rdOpenSource ( gwoo did you say that you want to release the new rdBloggery ? ;) ) especially

Re: a few questions about cake 1.2

2007-01-23 Thread kabturek
Hello Claudio Poli  napisał(a): 3) I know that behaviors are still a moving target, but could please someone into it write a little tutorial on how to make one? http://bakery.cakephp.org/articles/view/198 4) Can please somebody explain what's a real life example of usage of finderQuery

Re: Unoffical API / Beta RFC [new]

2007-01-21 Thread kabturek
Hi Ralph, contributing is the way to go ;) but if you can't contribute - make a ticket - not with the exact documentation but with what you would like to find in the manual ... its a good way of informing people from the docs team what is missing ... btw. come to #cakephp people will always

Re: Translation help

2006-12-23 Thread kabturek
Polish version coming in couple of hours :) Merry Christmas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this

Re: Sites Powered by CakePHP

2006-11-10 Thread kabturek
www.firefoxparty.com + some more mozzilla apps ( the new plugins list ) and here is the Showcase that Mikee Freedom mentioned. http://wiki.cakephp.org/showcase --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake

Re: My Cake development environment

2006-10-06 Thread kabturek
hypercubed wrote: Can anyone read polish? http://www.radzaw.one.pl/2006/07/10/PHPEclipse+Vs+PHP+IDE+Kolejne+Kr%C3%B3tkie+Starcie.aspx yes :) It's a short comparision of the two important ( for the bloger) functions - 1.finding of the occurence of the variable and 2.properly showing the

Re: Going around with Cake ACL

2006-09-13 Thread kabturek
need to think about the proper structure of the tree. Got to do some work now ;) give a replay if you're following me... greeta Kabturek --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post