Developing (v7+)

how to display image

I have the following code and doesn't work to display image. How to fix instead of this code? [code]$rsSelect = $dbSelect->Execute("SELECT * FROM StudentExpressSearchIndexAttributes"); foreach($rsSelect->fetchAll() as $row) { $imgHelper = Loade…

Which is excellent between express and SQL Query

Because of deleting express doesn't delete sql records, which is excellent between express and SQL Query or Is it necessary both? Eg. For delete [code]Express::deleteEntry(1);[/code] [code]$rs = $dbl->Execute('DELETE FROM StudentExpressSearchIndex…

How to retrieve using multiple conditions

I found [$list->filterByStudentFirstName('Andrew');] from the following link. https://documentation.concrete5.org/developers/express/creating-reading-searching-updating-and-deleting-express-entries How to retrieve data with multiple conditions?

8.4+: File upload error: file too large but it's not

I'm uploading a 200 kB file with this: [code] $service = $this->app->make('helper/security'); if (is_uploaded_file($photo)) { $importer = new Importer(); $photo = $_FILES['photo']['tmp_name']; $photo_name = $service->sanitizeString(mb_st…

8.4+: How to set group permission to Add Files

Referring to this: https://documentation.concrete5.org/developers/permissions-access-security/advanced-programmatically-setting-permissions-on-an-object I need to programmatically set permissions to a group of users to add files to the file manager. Th…

8.4+: How to get $_FILES post data

You get post data from inputs like: [code] $data = $this->request->request->all(); [/code] However, this doesn't get file upload data. But even [code] $photo = $_FILES['photo']['tmp_name']; $photo_name = mb_strtolower($_FILES['photo']['name']); $p…

Deleting tags programatically?

Does anyone know how to do this? Tags seem to be the most obtuse processes in C5 (IMHO), and I can't seem to find a way to delete a tag programmatically, like [code] $tag = \Tag::getByValue("cats"); or $tag = \Tag::getByID("1234"); $tag->delete…

How to Use Latest API

Hello I am referring http://andrewembler.com/2018/02/meet-concrete5s-rest-api-and-new-routing-component/ , I have setup latest Concrete5 8.5.1 and enabled API in its settings. When I goes to www.domain.com/ccm/api/v1/system/status it returns 404 page n…

Logout error concrete 8.4.5

If i want to logout from the system i get a an Unexpected error which goes like: [code]Class Concrete\Authentication\ExternalConcrete5\Controller does not exist[/code]

Filter Posts