Showing 1-20 of 652 items.

DB Driven CMenu (Widget)

Created 12 years ago by Preacher Preacher, updated 12 years ago by Preacher Preacher. 0 comments

Awhile ago I was trying to find a database driven CMenu system to add to my web applications. This always seemed to me that it would be a lot easier to manage if it where in a database. So the following is the results of that effort:

1 0
1
Viewed: 8 873 times
Version: 1.1
Category: Tutorials

Find geolocation info of client through another API

Created 12 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz), updated 12 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz). 0 comments

This wiki shows how to get the geolocation info of the client using another server API It could be write also as extension but there are a lots of APIs that change the below code So, I wrote the below code that works for one of them (using www.geoplugin.net)

1 0
2
Viewed: 11 613 times
Version: 1.1
Category: How-tos

Named scope - Get orphan AR without losing primary key

Created 16 years ago by cma cma, updated 15 years ago by Steve Friedl Steve Friedl. 0 comments

Sometime, in a many-to-many relation, you need to retrieve AR that aren't linked. In practice, AR with null value in the join table. So you implements a criteria like this :

public function scopeUnused( $useAnd = true )
    {
        $join = " left outer join composed_by j on t.ID = j.ID ";
        $condition = ' j.ID Is Null';

0 0
2
Viewed: 12 222 times
Version: 1.1
Category: Tutorials

    Custom Archive in Blog system

    Created 14 years ago by nirmalroka nirmalroka, updated 14 years ago by nirmalroka nirmalroka. 0 comments

    Hi I had made simple archive system for blog system that can handle tbl_post. I had used simple CDbCriteria not more than that. I know there is more and many better way to this but I think this will give some idea to users to generate new idea or customized or modified this version of code.

    1 0
    2
    Viewed: 13 216 times
    Version: 1.1
    Category: Tips