Selecting empty rows?

2009-10-14 Thread BeroFX
How can I select records where a column doesn't contain any value, like ''. Doing it like this $this->Document->find('all', array ('conditions'=>array('Document.title'=>''))); produces a WHERE `Document`.`title` = NULL query and that's not right. What I need is a WHERE title='' query returned.

Re: Layout and design

2009-09-27 Thread BeroFX
Hello, I hope you read the official manual. For any assistance in Croatian, please find me on Twitter (@IvanBernat) (lang=hr) Dobro došao! On Sep 26, 12:59 am, Ziki wrote: > Hi, > > I'm new in cake, i have question about designing, and creatinglayout > for my site, > > my site is on this domain

Re: Parsing image BB with HTML helper

2009-09-06 Thread BeroFX
Okay, I know I wasn't crazy, after 3 hours of searching, I found it. http://www.gersh.no/posts/view/embed_images_anywhere_in_cakephp --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this g

Parsing image BB with HTML helper

2009-09-06 Thread BeroFX
Hi guys! I saw a really neat piece of code a few weeks ago, but forgot to bookmark it and am running crazy now. I was actually a component that did the following: You put [image:123] in your text (e.g. Post text) and save it. When you're reading the data out, you do $post['Post']['text'] = $th

Weird performance issues on live server

2009-07-11 Thread BeroFX
Hi guys! I'm having some really weird problems on the client production server. The problem is: When ever I make an action (e.g. add a record, add a cookie, store a session) I have to make a second browser refresh to actually get the action working. So, I add a record, redirect to "index" actio

Re: Simple Static Site with Cake

2009-06-01 Thread BeroFX
If you need only static pages you don't need models. Just place your pages in the views/pages folder E.g. if your page is about-us.ctp you'd access it via www.mysite.com/pages/about-us You can further alter the routes.php in /config folder to remove the / pages in the URL On Jun 1, 10:02 pm,

Re: Poll: what do you hate about CakePHP?

2009-05-08 Thread BeroFX
- PHP 4 support+++ - No namespaces+++ - No built in Uploader component++ - No native Image component --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@goog

CakePHP Themes and PHP Security

2009-05-04 Thread BeroFX
I want to enable my users to upload customized versions of the index/ view templates. Is there a way I can restrict them to use only PHP variables and object methods? I'm asking, because if a user uploads a customized template (.ctp) I don't want it to include malicious code (e.g. listing direct

Re: Cakephp Forms Security Flaw

2009-05-04 Thread BeroFX
Well, first of all, you need to validate the data before saving it. http://book.cakephp.org/view/125/Data-Validation Then, you might consider sanitizating the submited data http://book.cakephp.org/view/153/Data-Sanitization And then, you can even go ahead and allow only certain fields to be sa

Re: begining with cake

2009-04-27 Thread BeroFX
Try this function index() { //obtiene todos los ingredientes y los pasa a la vista: $usuarios = $this->Usuario->find('all'); // wrong Model name $this->set('usuarios', $usuarios); } On Apr 27, 7:44 pm, Pablo wrote: > I just installed cakephp and made my first model,

Re: Another Newbie question (or two!)

2009-04-21 Thread BeroFX
Set debug = 0 in app/config/core.php On Apr 22, 12:17 am, Beedge wrote: > Hi all, > > I have recently decided to learn a framework, and from what Ive seen > Cake is the way to go,, So I ve gotten my hands on 'Practical cakePHP > projects' > > Im doing the first blogging tutorial, and my first at

Re: CakePHP in Google Summer of Code

2009-03-11 Thread BeroFX
Why not a project that integrates a bunch of services into a single one? :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscrib

Re: Firefox Search Engine Plug-In

2009-02-10 Thread BeroFX
Ooops, sorry, thought you were talking about me :-) My 5 star rating is still up :-) On Feb 10, 10:25 am, BeroFX wrote: > @Herman: > > Man, I'm really sorry. I'm the guy that rated you, but I chose 5 > stars, not 1 (!?!?). > I have no idea why

Re: Firefox Search Engine Plug-In

2009-02-10 Thread BeroFX
@Herman: Man, I'm really sorry. I'm the guy that rated you, but I chose 5 stars, not 1 (!?!?). I have no idea why Mozilla entered it as one :-( --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post

Re: cakephp.org down/inaccessable

2008-12-08 Thread BeroFX
I just noticed I can't open it, while it was working just fine last week. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe

Re: A new cakesite...

2008-11-25 Thread BeroFX
A forum, Cake needs a decent forum (www.cakephpforum.net is offline 90% of the time), a knowledge base with snippets and articles.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this grou

Advanced Routes

2008-11-25 Thread BeroFX
Hi guys! Imagine you have a standard social network with users who can have blogs, pictures and videos. I need to setup my routes like this: http://www.mysite.com/michael --> this is like / users/view/123 http://www.mysite.com/michael/videos/123 --> this would show michaels

Adding CSS class to HTML link helper

2008-06-15 Thread BeroFX
So, I baked some views and looking at the code you get: link(__('Edit', true), array('action'=>'edit', $bookmark['Bookmark']['id'])); ?> Which prints out an "Edit" link. How do I add a CSS class to this so I can have a little icon next to the text? note: I have the css code. Also, can anyone e

Re: Default (index) page

2008-04-30 Thread BeroFX
@Sliv Thanks man! On Apr 29, 8:08 pm, Sliv <[EMAIL PROTECTED]> wrote: > look for a file called home.(ctp|thtml) and edit it. > then read this:http://book.cakephp.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "C

Default (index) page

2008-04-29 Thread BeroFX
OK, I got through the blog tutorial. How do I make a default or better said HOME page (the one users will see first) with the latest blogs, blog of the day etc. Actually, just tell me how to make the home page, I'll figure out the rest :D --~--~-~--~~~---~--~~ Yo

CakePHP full example web site?

2008-04-28 Thread BeroFX
Does anyone have a link or an example of a Cake site? What I'd like to see is a site with a main page, md5 passwords etc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send