Re: Cakephp CMS - - how to prevent html in comment spam?

2009-11-14 Thread euromark (munich)
the probably easiest way there is: use h() for printing out the content of the comment it will make all special characters useless by the way: use a captcha behaviour for those bots and you should be fine i even experimented with passive captchas not visible to the user and therefore not annoyin

Re: Play Audio in PHP

2009-11-10 Thread euromark (munich)
no, ohne in html (as this is the "final" source code) check out google for this On 10 Nov., 15:10, Ramya Arumugam wrote: > Hi All, > > Is it possible to play audio file in php? > > If yes, then how will we embeded it in the php file. > > Thanks, > Ramya -- You received this message because you

Re: Date Calculation Problem

2009-11-10 Thread euromark (munich)
*LOL* you would need to define your start_dateime var in the first place..^^ On 10 Nov., 10:51, jiru wrote: > hii, > > I put the code like this : echo $form->input('due_date',array(date('Y- > m-d H i s', strtotime('+1 hour',strtotime($start_datetime); > shows an error, Notice (8): Undefi

Re: Validate a single field

2009-11-07 Thread euromark (munich)
just submit only that field the model validation is only triggered for fields that are beeing passed so if there is only one passed form field, only this one will be validated PS: dont use "required''=>true" in your rules or you screw it up On 7 Nov., 17:43, "Dave" wrote: > How can I validate

Re: save sensitive information

2009-11-03 Thread euromark (munich)
havior > > On Nov 3, 10:30 am, "euromark (munich)" > wrote: > > > i was wondering how to save sensitive information of users > > like cc number or bank data? > > my guess is they should not be saved as plain "chars" but encrypted in > > such

Re: Is this EVIL in cake?

2009-11-03 Thread euromark (munich)
there are some components that work that way its not really evil... in some cases this would be the appropriate way actually On 3 Nov., 14:47, "lacenaepro...@gmail.com" wrote: > SORRY, RETYPE AGAIN, I PRESSED THE SUBMIT BUTTON!! > > HI, > > I'm building a component that automatically sets the l

save sensitive information

2009-11-03 Thread euromark (munich)
i was wondering how to save sensitive information of users like cc number or bank data? my guess is they should not be saved as plain "chars" but encrypted in such a way that if the db is ever going to be hacked the retrieved data would be useless to anyone without the correct "key" passwords usu

Re: Sanitize:: clean help

2009-11-01 Thread euromark (munich)
way to complicated dont sanitize it and use h() for output (text, varchar) that is way more handy than any other approach On 1 Nov., 06:44, Kyle Decot wrote: > Try echo $form->input("description",array("value"=>html_entity_decode(@ > $this->data["Model"]["description"]))); > > On Oct 31,

Re: What's going on with www.cakephp.org?

2009-10-28 Thread euromark (munich)
yeah :) i like the "BRAAIIINS" stuff^^ On 28 Okt., 10:59, Eugene Golovan wrote: > Helloween? %) > > jordicakephp wrote: > > Hello everybody, it's 10:45 am in Barcelona, Spain. > > > When trying to access the project's site,www.cakephp.org, I'm getting > > some very strange images! The site seems

Re: Google Bot deleting my database entries!

2009-10-26 Thread euromark (munich)
you are violating protocol never allow GET recquests to change database no edit, no add, no delete if you (or a bot) access an url always use POST for those actions! then this won't happen besides this, the above solutions could be working work-arounds On 27 Okt., 00:15, Miles J wrote: > It

Re: skipping the add() view?

2009-10-23 Thread euromark (munich)
you should use the array format for this!! url=>array('action'=>'whatever') and not the /controller/action/ hardcoded strings gimperdan...@gmail.com schrieb: > Thanks. That's exactly what I had in mind, just couldn't figure out > how to catch the errors. It's a bit of work, just to display error

Re: Before render being called twice?

2009-10-21 Thread euromark (munich)
i used to have this problem as well with almost all before/after functions dunno what causes this On 21 Okt., 15:10, Aivaras wrote: > Hey, > > we can't unless you provide us more details. > > Aivaras > > On Wed, Oct 21, 2009 at 16:09, Amit Rawat wrote: > > Hello friends, > > >  I am having a

Re: find __() function parameters in /app and update *.po - automated

2009-10-13 Thread euromark (munich)
i agree with miles they should be slugged, short and precise and explained in both the english and foreign .po file like "regMessageSuccess" and "You have been successfully registered" "Sie sind nun erfolgreich angemeldet" or "valErrorRecordNameExists" for "A record with this name already exi

Re: TextHelper Problem

2009-10-12 Thread euromark (munich)
well the helper IS NOT available in the controller right away you need to add App::import(Helper,Text); $this->Text = new TextHelper(); now you can work with it... brian probably didnt read your post and thought you talked about a component On 12 Okt., 20:50, Lukar Dennig wrote: > Thanks. H

Re: fields in find('list')

2009-10-12 Thread euromark (munich)
manually with find(all) and building the array yourself or by simply using the multiple_display_field behaviour from the bakery etc On 12 Okt., 12:37, Buggy wrote: > Hello, > > i tried to receive a list by callign find('list'): > > $employees = $this->Employee->find('list', array( >          

Re: Cache question

2009-10-11 Thread euromark (munich)
did you experience that in the almighty crap-explorer IE? On 11 Okt., 18:33, "Dave Maharaj :: WidePixels.com" wrote: > I have an element that when the user logs in says Welcome Test Account One > (being my dummy user's name) > > I logout and login as a different user and it shows Welcome Test A

Re: How to convert tinyint(1) back to boolean?

2009-10-10 Thread euromark (munich)
i even use a helper funtion echo $common->yesNo($val) which results in one of 2 icons: green check mark or a red cross (even more pleasing visual appearance) On 9 Okt., 15:00, FrederickD wrote: > I may not understand completely what you are trying to do. I've kept > my boolean elements at tin

Re: Auth component bug

2009-10-09 Thread euromark (munich)
actually i have been using 0 instead of false or null works for me On 8 Okt., 22:03, Miles J wrote: > Try setting null instead of false, Cake acts weird sometimes with > "false". > > On Oct 8, 12:05 pm, ben wrote: > > > I was able to overcome this behavior by setting this in my routes.php > > >

Re: How to convert tinyint(1) back to boolean?

2009-10-09 Thread euromark (munich)
usually there is no need to do so !empty($val) as well as if($val) works on both types the same way you could easily cast to bool, though: $x = (bool)$val; 1 => true 0 => false On 9 Okt., 01:36, Xhaphir wrote: > Hi, > > i have a small problem in cakePHP. I saved a lot of booleans and > integ

Re: Problem with editing in-validated messages

2009-10-06 Thread euromark (munich)
use the console bake script - you seem to have a really ugly cakephp code there - if you bake your views first you get a better idea how it is supposed to be done especially for a beginner like you this would help a lot! On 6 Okt., 11:57, vekija wrote: > try removing $this->Message->id = $id;

Re: Strange FormHelper behavior

2009-09-29 Thread euromark (munich)
this is the correct way to go: echo $form->create('Model',array('url'=>'/'.$this->params['url'] ['url'])); On 29 Sep., 15:00, Django Janny wrote: > I think you just have to specify the relative url to your action > $this->here is the absolute url... > > > > On Tue, Sep 29, 2009 at 14:49, Ernes

Re: neighbors sort

2009-09-28 Thread euromark (munich)
i ended up writing some highly complicated function for it myself not only for your problem, but for "correct" neighbors in general if you use UUIDs you dont have sorted IDs anyway and sometimes you have to sort by more than just 1 field etc.. On 25 Sep., 17:27, mklappen wrote: > Hi > > Is the

Re: Code Editors

2009-09-20 Thread euromark (munich)
it is your responsibility to make it look clean the editors can only help and assist and phpdesigner (as well as many others) does a really great job so i dont know what your problem is... On 20 Sep., 17:13, "Dave Maharaj :: WidePixels.com" wrote: > What do you use to edit code? > > I cant see

Re: Making AJAX play nice with $this->model->validates()

2009-09-20 Thread euromark (munich)
actually thats not quite how it is supposed to be done you only need one validate_ajax method or whatever if you set up your rules according to the cookbook (and without using "required"=>true!!!) you are able to pass only the form vars necessary for the current validation - inside your single aj

Re: Variable substitution

2009-09-16 Thread euromark (munich)
tem administrators are able to > > > customize these messages without having to interact with programmers. > > > > Therefore, I need generic placeholders. I could write a hundred substr > > > (), for each message type needs different variables (lost password > > > emai

Re: Detecting an Address inside of a string

2009-09-15 Thread euromark (munich)
which so many possible "human" formats, this is close to unachievable you could just geocode it anyway which google api etc and maybe they have some smart algorithms the zip, city and adress string itself is not the main problem this can be achieved with only few mistakes by using regex etc. bu

Re: phpThumb

2009-09-15 Thread euromark (munich)
mac.  I'm not sure what "DS" means, if you could > > please clarify. Can you show me an example of what you mean with what I > > posted?  I also added the code you wrote below to the create_thumb function > > in phpThumb.php (before setparameters() and after $this-

Re: Variable substitution

2009-09-14 Thread euromark (munich)
thats what bbcode, placeholders etc. and sprintf(), replace functions etc. are for On 14 Sep., 20:11, brian wrote: > On Mon, Sep 14, 2009 at 8:06 AM, djogo wrote: > > > That's exactly the point, I want it to be in a database column, and > > allow the end-user to edit it. Therefore, $test would

Re: Release: CakePHP 1.2.5

2009-09-14 Thread euromark (munich)
the nightly build does not have the date problems so i guess this was an error on building the official release the version number is still 1.2.4 in the nightly as well though On 15 Sep., 01:45, frsp wrote: > Yes, it is a bit strange > >  * @version       $Revision$ >  * @modifiedby    $LastCh

Re: savefield doesn't work with tinyint

2009-09-14 Thread euromark (munich)
my guess is that your validation rules are not correctly set On 14 Sep., 09:55, WebbedIT wrote: > @ Bill: your frustration is not really with CakePHP it's with the > learning curve that exists when first trying to apply all the > conventions.  It's probably something very simple that is causing

Re: phpThumb

2009-09-14 Thread euromark (munich)
;user/blankuser.jpg', >                                     'src' => WWW_ROOT . 'img/garagecar/' . > 'gc'.$garagecars[0]['GarageCar']['id'] . '_i' . > $garagecars[0]['GarageCar']['default_image_id'] . '.jpg', >        

Re: phpThumb

2009-09-13 Thread euromark (munich)
ethod On 13 Sep., 22:54, "euromark (munich)" wrote: > funny thing > > i tried that helper > and on localhost with xampp/windowsXp it works just fine > > after uploading it to my webserver (linux), it broke (same error as > yours) > > so my guess is something wi

Re: phpThumb

2009-09-13 Thread euromark (munich)
is set to 777 etc so missing rights can be ruled out, too did you figure it out, yet? On 13 Sep., 22:51, "euromark (munich)" wrote: > On 11 Sep., 23:24, hahmadi82 wrote: > > > I'm trying to use this helper with the phpThumb > > library:http://code621.com/cont

Re: phpThumb

2009-09-13 Thread euromark (munich)
On 11 Sep., 23:24, hahmadi82 wrote: > I'm trying to use this helper with the phpThumb > library:http://code621.com/content/1/phpthumb-helper-for-cakephp > > When I run the code to give me a thumbnail I get: > >  Array ( [error] => 1 [error_detail] => phpThumb > v1.7.9200805132119thissourceFile

Re: savefield doesn't work with tinyint

2009-09-13 Thread euromark (munich)
save and savefield? no way.. i had millions of those working fine the past 6 months you must have some other problem there just one toggle value like "active": tinyint(1) unsigned NOT NULL default '0' etc On 13 Sep., 06:15, awstar wrote: > just a heads up, i've spent most of the day trying to g

Re: Doing a calculation as a field in a find

2009-09-11 Thread euromark (munich)
did you try it this way: (field1-field2) as foo maybe you need the parenthesis... not sure though but i know that MAX(...) etc works - so that would be my guess On 11 Sep., 16:01, Andrew Koebbe wrote: > Thanks for the suggestion. If I do that it back-ticks the whole thing > > select `x-y` A

Re: 1.3dev - some problems

2009-09-11 Thread euromark (munich)
i usually use the php or "cake" sessions On 11 Sep., 11:08, WebbedIT wrote: > I had a quick go with it, but failed miserably at trying to create the > sessions table from the command line, kept throwing an fatal error > with missing I18n class. > > Reverted back to last stable release, which is

1.3dev - some problems

2009-09-10 Thread euromark (munich)
i wanted to upgrade to 1.3 today but i ended up reverting to 1.2.5 did anyone experience problems with inflections? my forms get post to the wrong url maybe thats just me i have 2 rules $uninflectedPlural = array('contact','overview'); but the form helper posts to "contacts" the cake1.

Re: How to use a helper in Controller or Model?

2009-09-07 Thread euromark (munich)
@fahad you should point out that you would need to create the object prior to using it for all those who are not so familiar with that App::import('Helper', 'Html'); $this->Common = new CommonHelper(); $foo = $this->Common->do(); sometimes this is not neccessary if the helper function does somet

Re: How is the difference between Model::query() and Model::execute()?

2009-09-05 Thread euromark (munich)
same as without cake! usually execute "executes" (boolean true/false) and query can fetch, update, delete, insert... in cake you usually need only query On 5 Sep., 22:12, Miles J wrote: > query() is used by you manually within your Models. execute() is > called privately within the Model class

Re: Automatically rendering element using RequestHandler - possible?

2009-09-05 Thread euromark (munich)
well i ususally put my analytics at the very bottom of the default layout a) every site gets tracked automatically b) all ajax requests are not effected (layout plain etc) if you really need to use analytics there too you could do that by adding it there again (some toggle variable) On 5 Sep.,

Re: Send mail smtp

2009-09-05 Thread euromark (munich)
i had another problem with smtp and the email component is this a bug? or a problem on freenet.de? " Hi. This is the qmail-send program at mail.gmx.net. I'm afraid I wasn't able to deliver your message to the following addresses. This is a permanent error; I've given up. Sorry it didn't work out.

Re: Users rating

2009-09-04 Thread euromark (munich)
sure check out the 3rd post for an example: http://www.cakephp-forum.com/datenbanken-mysql/mehr-als-einmal-auf-dieselbe-tabelle-verweisen-t351.html On 5 Sep., 03:08, koko wrote: > Hello, > > I have a webapp where users can rate other users, it's something like > amazone rating system where you

Re: Session timeout way too short

2009-09-04 Thread euromark (munich)
ase storage. > There is both a php temp folder and a cake temp folder. > > On Sep 3, 6:35 pm, "euromark (munich)" > wrote: > > > i see > > > i guess the php file storage is way faster than the DB one > > especially if your session has already a lot of i

Re: Session timeout way too short

2009-09-03 Thread euromark (munich)
session can suddenly be lost. I tracked that down to a few > candidates. Either that I was messing with the output buffer, had some > notice-error printed into the file, ended the view with an exit or any > combination of those. > > Those are the occasions when I have had Sessio

Session timeout way too short

2009-09-03 Thread euromark (munich)
Has anyone had the same experience? If I set Configure::write('Session.timeout', 'X'); down to 1 (with level low), i will be locked out after 10 seconds (which works!) But if i want the session to be alive > 20 hours and set it to 300 (level medium) the page throws me out after not more than 1 h

Re: dynamic tree structure

2009-09-03 Thread euromark (munich)
the tree structure can be build with html first (tree helper function) so that the markup is available in both cases js should only make the non-active branches invisible until clicked or whatever this way there is a working (although not very beautiful) fallback for non-js browsers On 3 Sep.,

Re: Extra newline character in every page??

2009-08-30 Thread euromark (munich)
i once had this problem with some trash editor from the internet they save your utf8 encoded pages with BOM without even asking etc. those might be interpreted as newline (at the beginning of the document) you should save your documents with proper editors - not using BOM just normal "utf8" wel

Re: Defining custom constants in models

2009-08-25 Thread euromark (munich)
since when are constants NOT global? if you define them in your model (above the class statement) just refer to them like you usually would echo USER_ROLE_READER etc thats all there is to it On 25 Aug., 12:53, pph7 wrote: > Hi there! > I am looking for a way to define custom constants in mod

Re: How to make pure html graphs in cakephp

2009-08-25 Thread euromark (munich)
use the google chart api and make a helper out of it On 25 Aug., 14:24, DavidH wrote: > Hi Mona > > My first response to your question is the rather flippant, "With a lot > of coding". (This is meant to be a joke). > > As I'm sure you're aware neither HTML, nor CakePHP has any built in > graphi

Re: sanitize and echoing in html

2009-08-21 Thread euromark (munich)
always the same^^ no sanitizing neccessary just use h($var) in the view and for textareas nl2br(h($var)) thats all On 21 Aug., 16:55, ezekfred wrote: > Hello, > > I'm having some issues with my views. > > add.ctp: echo $form->input('theanswer'); > view.ctp: echo $data['theanswer']; > > in my

Re: create .po file from database table (multilingual, l10n I18n)

2009-08-20 Thread euromark (munich)
lations that are not used for 18 months. > > ..text extract from pot file: > > #: /views/feedback/add.ctp:44 > #: /views/feedback/bytag.ctp:62 > #: /views/feedback/main.ctp:101 > #: /views/feedback/view.ctp:29 > #: /views/person/contact.ctp:22 > msgid "your Email" &g

Re: Inflector::slug not working with German umlauts

2009-08-20 Thread euromark (munich)
probably the encoding... save your file as UTF8 (!) and make sure everything else is set correctly it should work fine then On 20 Aug., 13:27, Taff wrote: > Hey I'm using Inflector::slug to convert a name to a slug. The german > version has numerous special characters in the form of äöüß. > > Al

cake-session on error-pages

2009-08-15 Thread euromark (munich)
we all know that the session (as well as other components) is not initialized on the error pages (as beforeFilter, afterFilter are not triggered) only beforeRender() is called - but on error pages i would like to have access to some session infos so what is the best way to include the session on

Re: create .po file from database table (multilingual, l10n I18n)

2009-08-15 Thread euromark (munich)
your gmx address does not seem to work i tried to contact you but got a delivery failure (not exists) maybe you want to drop me a line instead mark On 15 Aug., 09:23, ava wrote: > Hi Mark, > > how can I help (testing, reviewing, developing)?  Can you provide the > code? > > Andy --~--~-

Re: create .po file from database table (multilingual, l10n I18n)

2009-08-12 Thread euromark (munich)
you should take a look at my ideas a couple of weeks ago http://www.cakephpforum.net/index.php?showtopic=1588 i am almost finished with this plugin (as i had the same intention you have - keeping the work at a minimum, especially with multiple sites to work with) my ideas go a little bit further

Re: Is there a way to select an action from a double-click?

2009-08-12 Thread euromark (munich)
nothing easier than that with jquery: $("td.clickMe").dblclick(function() { ... }); On 12 Aug., 15:41, Ian R wrote: > On Aug 12, 9:02 am, FrederickD wrote: > > > I'm sorry my post was not more clear. I know in things Internet- > > related there is no double-click like in a local application. H

Re: URL some page .../id disappeared ?

2009-08-11 Thread euromark (munich)
gree. It's often self-documenting, for one thing. And it goes > > to the heart of what Cake is, I think. Big kudos to the devs for > > pulling this together so coherently. > > > On Mon, Aug 10, 2009 at 9:53 PM, JamesF wrote: > > > > @euromark > >

Re: lazy loading?

2009-08-11 Thread euromark (munich)
@demon that looks promising i'll check it out, thx On 11 Aug., 11:38, evilbloodydemon wrote: > take a look tohttp://github.com/mcurry/lazy_loader/tree/master > > On Aug 10, 8:13 pm, Martin Westin wrote: > > > Typical me. I never got to my real point. > > > I wanted to say that if you are havi

Re: lazy loading?

2009-08-10 Thread euromark (munich)
objects can. The benefit of arrays (in PHP) is their simplicity and > wide support for array operations. > > Have you put Cake's Containable behaviour to use on your Models? > If you have, then should be fine. > > On Aug 10, 12:28 pm, "euromark (munich)" > wrote: &g

lazy loading?

2009-08-10 Thread euromark (munich)
hey guys i always though cake has (like yii) some build in lazy loading feature for the models not needed (although linked in the relation arrays (HM, HABTM etc) as stated here: https://trac.cakephp.org/wiki/notes/1.1.x.x after wondering why my page got slower and slower on some views that didnt

sql WHERE NOT EXISTS

2009-08-09 Thread euromark (munich)
does anybody know if there is a cake function for the WHERE NOT EXISTS functionality? i have "users" who have many "roles" in the join table "role_users" - and i want to display the ones not having any roles yet id user_id role_id 1 2 3 2 3 3 etc (user 1 not in the list yet, so does not have

Re: URL some page .../id disappeared ?

2009-08-08 Thread euromark (munich)
as i said, i would go with JUST "url"=>"/".$this->params['url]['url'] in this case there is no need to use "action" or the manually built url like james suggested be aware of the "/" in front of it though (otherwise the url is not built correctly) On 9 Aug., 02:06, JamesF wrote: > make sure yo

Re: URL some page .../id disappeared ?

2009-08-07 Thread euromark (munich)
as soon as you post the data, you dont need the /id anymore it is "hidden" in the form and gets passed on each submit if you "need" it in your url for some reason, dont use "action"=>"edit", but "url"=>"/".$this->params['url]['url'] on creating the form now it will stick to the url On 8 Aug., 0

Re: Storing arrays in the database (one field many values)

2009-08-07 Thread euromark (munich)
n HABTM as Robert stated would be the best choice in most cases especially as cake has beautiful automation for it anyway On 7 Aug., 16:46, "euromark (munich)" wrote: > i wouldn't say that vijay was incorrect - he ment the same thing, just > didn't express it as clear as yo

Re: Storing arrays in the database (one field many values)

2009-08-07 Thread euromark (munich)
i wouldn't say that vijay was incorrect - he ment the same thing, just didn't express it as clear as you, miles :) either way it is way cleaner to normalize the database - this way you have more control over the multiple choices and if you delete one "choice", you can make sure it is not related

Re: CakePHP Editor/IDE

2009-08-06 Thread euromark (munich)
phpdesigner2008 etc works quite well with cakephp it has the best complition you can probably get with php and cake On 6 Aug., 22:46, mike karthauser wrote: > There's cakephp bundles for textmate if you find yourself heading that   > way > > Mike Karthauser > Brightstorm limited > Tel: 07939252

Re: Disabling cache for po files

2009-08-06 Thread euromark (munich)
actually, in debug mode > 0, they are not cached your "cached" persistant file gets rebuild every time On 6 Aug., 13:57, "pespinos...@gmail.com" wrote: > Hello everybuddy, this is my first post here in the groups. > I am working with cakephp 1.2 and reading arountd I have realized that > cake h

Re: shuffle(), rand(), etc always returning same number

2009-08-04 Thread euromark (munich)
just use mt_rand() it is not without reason the "better random value generator" no need for srand() then On 4 Aug., 09:32, ianh wrote: > I had a similar issue with rand() not too long ago, it just returned > the same number under all circumstances. From memory, there is a > particular version

Re: De-sanitize for Text Boxes

2009-08-03 Thread euromark (munich)
way this way you wont run in any of your current problems mark On 4 Aug., 01:07, Ponch316 wrote: > I didn't set the encoding for UTF8. Should I? Are there any other > encoding related specifications I should follow? > > Thanks. > > On Aug 2, 1:41 am, "euromark (mun

Re: De-sanitize for Text Boxes

2009-08-02 Thread euromark (munich)
just dont sanitize them in the first place the problem must be caused by something else usually cake escapes them automatically is everything UTF-8? especially the db? (careful: utf8 not uft-8 here!) On 2 Aug., 03:34, Ponch316 wrote: > Hi, > > I'm new to CakePHP and I came across a little prob

Re: Vendors handling with js/css script packages without breaking their file structure

2009-08-01 Thread euromark (munich)
usually - if you look in your /app/webroot/js/ folder - you have a file called vendors.php that does what you are looking for: * Short description for file. * * This file includes js vendor-files from /vendor/ directory if they need to * be accessible to the public. yours, mark On 1 Aug.,

Re: Calling component in helpers / Calling models in helpers

2009-08-01 Thread euromark (munich)
this is exactly my point, miles! as they are not triggered manually you need to do some stuff on your own - if the component needs the controller $this object-reference or if the startup() does some important initialization stuff so for newbies who dont know what they do that sure is not an opti

Re: Calling component in helpers / Calling models in helpers

2009-07-31 Thread euromark (munich)
actually there might be some occasions where you would need to do that - and where you could even call it appropriate but with core components, this is usually NEVER the case if you have a component that is totally isolated and does not need any startup() or controller related stuff, this works

Re: Plural Singular with software

2009-07-30 Thread euromark (munich)
foreach ($software as $sware) {} would work as well as just foreach ($software as $s) {} etc be creative :) the scope of this var is so small that you should not bother too much here On 30 Jul., 17:34, Manolet Gmail wrote: > Hi, im building an application to collect pieces of software. the pro

Re: Free Cake Ebook : How to build your own blog from scratch

2009-07-30 Thread euromark (munich)
totally agree with andreas posting stuff in your mother tongue in an english forum is just not appropriate how would you feel if everybody starts to use his mother tongue this would be a multiculti whatever group without anybody beeing able to read anything else so no - write in english or post i

Re: Form helper to add a * to required fields

2009-07-30 Thread euromark (munich)
in my opinion you have to... thats because the logic of your validation rule does not always match the result cake puts in the form fields in the view (adding class "required") you can check that out by adding a style to "required" like "background-color: red" its pretty messed up some fields ar

Re: Free Cake Ebook : How to build your own blog from scratch

2009-07-29 Thread euromark (munich)
actually it should be ModelName (camelCased!) On 29 Jul., 15:02, Jogi Silalahi wrote: > Just give a comment, > i see on your tutorial : > $variable[‘Model name’][‘field name’] > > it should be written : > $variable[‘Model_name’][‘field_name’] > > CMIIW. > > On 7/29/09, Azril Nazli wrote: > > >

Re: Free Cake Ebook : How to build your own blog from scratch

2009-07-29 Thread euromark (munich)
i dont think a lot of people are able to read that - or know the language at all i wonder... why not using ENGLISH in the first place? On 29 Jul., 13:27, Azril Nazli wrote: > For those who can understand Malay language, I just made this Ebook to > help you out understand CakePHP > > http://blog

Re: Allow some html tags in Sanitize::html()

2009-07-28 Thread euromark (munich)
or the htmlpurifier library On 28 Jul., 11:47, majna wrote: > There is no way. > Use PHP's strip_tags() and htmlentities() instead > > On Jul 28, 12:30 am, Arnau Alcázar Lleopart > wrote: > > > Does anybody knows if there is any way to allow some html tags in > > function Sanitize::html()? > >

Re: using simple HTML form with cakePHP !

2009-07-28 Thread euromark (munich)
what reason what that be justifying not using the form helper? i cant see any :) On 28 Jul., 14:28, Abraham Boray wrote: > I'm not usin' Form helper 4 some reason , and I'm working with a > simple comment form :: > > /**form*/ >       >     >     >     >     >     class=

Re: Cache not configured properly

2009-07-26 Thread euromark (munich)
e the config edit APP/config/core.php " On 26 Jul., 17:05, brian wrote: > On Sun, Jul 26, 2009 at 7:48 AM, euromark > > > > (munich) wrote: > > > i doubt that your memcache is working^^ > > actually, it falls back to "file caching" if memcache cannot

Re: Automatically Check a Checkbox

2009-07-26 Thread euromark (munich)
file_controller.php in the add function is absoluty correct did you create your form with the form helper? create('MODELNAME');?> etc? PS: if you are a beginner, always let CAKE bake your models, controllers, views! this way everything is set up correctly for the cake "magic" to work On 26 Jul

Re: Edit record validation versus New record validation (Solved)

2009-07-26 Thread euromark (munich)
isUnique also works for edit!!! it does check on "id != ownId" automatically... On 25 Jul., 23:20, Rick wrote: > Found my own answer/solution with this custom validator.  I put this > in my app_model and then can use it from any model.  You use it as a > rule as you would any core validator: >

Re: Cache not configured properly

2009-07-26 Thread euromark (munich)
i doubt that your memcache is working^^ actually, it falls back to "file caching" if memcache cannot be used: trigger_error('Cache not configured properly. Please check Cache::config(); in APP/config/core.php', E_USER_WARNING); $cache = Cache::config('default', array('engine' => 'File')); you ca