Helper dynamically loading other helpers

2007-07-13 Thread mac joost
Hi, In my plugin a web-developer can add custom helpers. Therefore I load the needed helpers dynamically. In the controller, this works fine, but now I want to dynamically load other helpers in my main helper. This doesn't work, since the view class loads all helpers before any helper code is

Re: Chinese symbols when testing installation on Mac OS

2007-07-12 Thread mac joost
Hi, Weird. Have no idea what could be the problem, but the tutorial you are doing seems quite old (2005). Have you tried the blogpost tutorial on the CakePHP site? http://manual.cakephp.org/appendix/ blog_tutorial ? On Jul 11, 5:59 pm, screenager [EMAIL PROTECTED] wrote: Hy, I tried to

Sanitize html helper double converting htmlentities

2007-06-26 Thread mac joost
Hi, When I use Sanitize to clean user-input and then create a form using the html helper, 'special characters' like '' get double converted: - Sanitize converts '' into 'amp;', which is then stored in the database. - html helper functions convert 'amp;' into 'amp;amp;'. I would like to use both

Re: Sanitize html helper double converting htmlentities

2007-06-26 Thread mac joost
Thanks for the reply. I'm mainly using Cake 1.1. I need to change my templates to use Cake 1.2 and will maybe do this later this week. As for the code, it's quite straight forward: I have a classifieds_controller which adds a classified add to the database: /* part of function save() */

Re: Sanitize html helper double converting htmlentities

2007-06-26 Thread mac joost
($fieldName); } looks like if you do the following, you'll avoid the htmlentities: echo $html-input($modelName./. $key, array(class=text,value=HTML HERE), true); On 6/26/07, mac joost [EMAIL PROTECTED] wrote: Thanks for the reply. I'm mainly using Cake 1.1. I need

move private subversion repository to CakeForge

2007-05-29 Thread mac joost
Hi, I created a project on CakeForge for a product I developed in my own subversion repository. Now I would like to move my own repository into CakeForge keeping all revisions (using svnadmin dump DUMPFILE and svnadmin load DUMPFILE). svnadmin load does not work on remote repositories and I

ANN: CMS plugin for CakePHP manager

2007-05-02 Thread mac joost
Hi, I would like to share with you the first public release of my Manager plug-in for CakePHP! It is a generic content editor for your Cake app. When installed, it reads your app's models and allows you to create, edit or delete items. It should work on any Cake app, but I have not been able to

Conditional belongsTo based on field values

2007-03-28 Thread mac joost
Hi, I'm building a site for an art magazine. Among other things, they have articles and advertisements. On the homepage they want to publish one list with articles and advertisements. Which articles or advertisements and the order of them all are hand-picked. To do this I've made a Home model

Re: Conditional belongsTo based on field values

2007-03-28 Thread mac joost
Hi, var belongsTo can support conditions have you tried using them? Conditions would not work in my case since the model to bind to would be conditional, not the query itselve. if you want them to be dynamic try combination bind and unbind models I will look into this. I'm planning to do

Re: Spam-protected, accessible forms?

2007-03-27 Thread mac joost
Hi, I would absolutely recommend the Akismet service (http://akismet.com/) Felix has written a Model for it which is really easy to implement in your controller. No other view or model changes needed. See: http://cakeforge.org/snippet/detail.php?type=packageid=18

Re: Ajax editor() and wysiwyg editor

2007-03-16 Thread mac joost
Not exactly an answer, but http://bakery.cakephp.org/articles/view/60 has an instruction on using TinyMCE in Cake. On Mar 16, 5:07 pm, Cavallo [EMAIL PROTECTED] wrote: Hi Is possible to use in $ajax-editor() a wysiwyg (tinymce, FCK,...) ? And if it is then how ? It would be realy nice if

Re: routing to a plugin

2006-10-10 Thread mac joost
Hi, Don't know if this helps or is what you mean, but on the bottom of: http://manual.cakephp.org/chapter/plugins it says: You can have a default controller with the name of your plugin. If you do that, you can access it via /[plugin]/action. For example, a plugin named 'users' with a

plugin cookie path changes from 1.1.6 to 1.1.7

2006-09-04 Thread mac joost
Hi, Just spent a whole morning on this. I'm developing a CakePHP plugin that needs sessions. Ran into a lot of troubles when I changed from CakePHP 1.1.6 to 1.1.7 It turned out that the Cookie path in 1.1.6 is set to /, while in 1.1.7 it is set to /plugin_name/. Also, the path is case