Monday, August 31, 2009

Re: prototype

Might be worth checking this link out

http://www.jamesfairhurst.co.uk/posts/view/compressing_jquery_javascript_with_php/

2009/8/31 Dr. Loboto <drloboto@gmail.com>

Or place prototype and scriptaculous back into header and deal with
load time by cache or do not use ajax helper and write your own
javascript code that can live in such conditions.

On Aug 31, 8:00 pm, persianshadow <persiansha...@gmail.com> wrote:
> hi
>
> i using prototype and scriptaculous in my project but these frameworks
> are heavy size and
>
> final pages load very slow , i searching for find solution for this
> problem , i want put these
>
> framework in bottom of my layout (near close body tag) but after this
> work , ajax method and
>
> scriptaculous effects don't work.
>
> anybody have idea for solve this ?
>
> thanks :)



--~--~---------~--~----~------------~-------~--~----~
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 from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Re: Announcing CakeXT: Bind CakePHP and ExtJS together

Hi Mark

yes, that's very possible ... the panels are the bread and butter
component of Ext. You can have them either managed by a layout manager
or you can append them to any div you want.

Check out the demos on the Ext site to see what else you can do with
them ...

wirtsi

On 27 Aug., 08:04, Mark Tannenberg <mark.ta...@googlemail.com> wrote:
> Hi
>
> I started using this project and I guess I still have to grasp the
> concept ofExtJscoding ... I wonder, would it be possible to use this
> in a different environment than just the 3 tabs you mentioned?
>
> Regards
>
> On 25 Aug., 10:23, technicaltitch <technicalti...@gmail.com> wrote:
>
> > Very exciting!
>
> > On Aug 24, 11:18 am, wirtsi <florian.kra...@googlemail.com> wrote:
>
> > > Hi ...
>
> > > I have started a new project to bind CakePHP andExtJStogether. I've
> > > been using CakePHP for the last few years and found that the further
> > > you push your projects into the Web 2.0 / heavy Ajax domain, the more
> > > difficult it gets to keep track of all the html / javascript
> > > dependencies you need for your site to work.
>
> > >ExtJshandles all this very nicely, it pushes ALL of the user
> > > interface creation onto the browser ... so the V from MVC purely lives
> > > on the client side. All the business logic like data validation is of
> > > course still handled by Cake.
>
> > > I've written a lengthy blog entry on how to use CakeXT (which consists
> > > of a Cake Helper and an extended Ext class) including a demo of the
> > > system. The cool part really is, that you don't need any further
> > > configuration of Ext. Add a new field to your database and it will
> > > automatically appear in your view.
>
> > > The blog entry can be found athttp://blog.mykita.com/2009/08/introducing-cakext-create-slick-single...
> > > and the project lives athttp://cakext.mykita.com/trac.
>
> > > Since this project is still very young I'd love to hear what you think
> > > about it ... for sure there's plenty of room for improvements :)
>
> > > Wirtsi
--~--~---------~--~----~------------~-------~--~----~
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 from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Re: prototype

Or place prototype and scriptaculous back into header and deal with
load time by cache or do not use ajax helper and write your own
javascript code that can live in such conditions.

On Aug 31, 8:00 pm, persianshadow <persiansha...@gmail.com> wrote:
> hi
>
> i using prototype and scriptaculous in my project but these frameworks
> are heavy size and
>
> final pages load very slow , i searching for find solution for this
> problem , i want put these
>
> framework in bottom of my layout (near close body tag) but after this
> work , ajax method and
>
> scriptaculous effects don't work.
>
> anybody have idea for solve this ?
>
> thanks :)
--~--~---------~--~----~------------~-------~--~----~
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 from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Re: Regex validation problem.

Your function does all right - alphanumeric values only as you did
nothing with it.

'/^[a-zA-Z0-9_-]+$/'
--~--~---------~--~----~------------~-------~--~----~
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 from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Re: How to stop html->link helper adding line breaks

It is not normal behavior. Check PHP files (not views/elements) for
whitespace before/after <?php ... ?> tags - remove it if find. Check
for files saved in UTF-8 with BOM mark - remove it if find. You can
try just update your cake to not check its files for modifications and
only check your ones.

On Aug 31, 4:23 pm, WebbedIT <p...@webbedit.co.uk> wrote:
> Anybody?  I have now started seeing this with other helpers, such as
> time, when I have a comma or fullstop appearing after the html the
> helper generates.
--~--~---------~--~----~------------~-------~--~----~
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 from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Re: change route after authroize users

i know that but i want change general route '/' so yes your trick
witch redirect working after user did login but after even go to /
load default general route from /

but i'll try user Route::conntect in login() :)

On 31 Sie, 10:32, Aivaras <faifas1...@gmail.com> wrote:
> Hey,
>
> did you take a look at thishttp://book.cakephp.org/view/391/loginAction?
>
> Faifas
>
> On Mon, Aug 31, 2009 at 11:05, andrzejborkow...@gmail.com <
>
>
>
> andrzejborkow...@gmail.com> wrote:
>
> > 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();
> > }
>
> > but it dont work and still active first default route form route.php..
--~--~---------~--~----~------------~-------~--~----~
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 from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Re: Custom query pagination

Hi folks,

I can't use a View for the union query as it requires parameters. Even
if I take away the fulltext, and then do a fulltext search on the
view, MySQL can't then delegate the indexes across the union within
the view, so it doesn't work. Any more ideas or sample pieces of code
would be appreciated :)

Dean

On Aug 28, 9:09 am, "Dr. Loboto" <drlob...@gmail.com> wrote:
> If you can do view for your union query you will be able to work with
> it as with normal table.
>
> On Aug 28, 5:58 am, Dean C <dean.clatwor...@gmail.com> wrote:
>
>
>
> > Hi folks,
>
> > Before I begin, yes I've read this page:http://book.cakephp.org/view/249/Custom-Query-Pagination
>
> > I've also read many of the other pages on Google but I'm still stuck!
>
> > First of all if I may introduce you to my query:http://bin.cakephp.org/view/1064020598
>
> > It's a union query that allows me to search across two tables and
> > return the results, ordered by relevance. To put it simply I want to
> > paginate these results, but I haven't a clue how to do it. I tried,
> > and failed, over-riding the paginate and paginateCount methods in my
> > model, but I shan't even begin to post my long list of errors.
>
> > Where should I start?
>
> > Thanks!
>
> > Dean
--~--~---------~--~----~------------~-------~--~----~
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 from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---